Function at 0x404803
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x438ce4]
push ebx
push esi
push edi
movzx eax, word [eax + 0x16]
mov esi, ecx
push eax
push 0
push esi
mov dword [ebp - 0x1c], edx
call fcn.0040e000
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je case.default.0x4047f3
mov ecx, dword fs:[0x18]
xor bh, bh
xor bl, bl
mov byte [ebp + 0xb], bh
cmp dword [edx + 0xec], 0
mov dword [ebp - 8], 0
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
je 0x4047d8
mov eax, dword [edx + 0xe8]
mov dword [ebp - 8], 0
test eax, eax
je 0x4047d8
mov bh, 1
xor ecx, ecx
test byte [eax + edi + 0x10], bh
mov eax, 1
mov byte [ebp + 0xb], bh
cmovne ecx, eax
mov dword [ebp - 8], ecx
mov ecx, dword [0x438ce4]
movzx eax, byte [ecx + 0x14]
dec eax
cmp eax, 8
ja case.default.0x4047f3
mov dword [ebp - 0x10], 0x80
jmp dword [eax*4 + 0x404a9c]
mov eax, dword [edx + 0x58]
mov dword [esi + 0xa8], eax
mov dword [esi + 0x9c], 1
mov ecx, dword [0x438ce4]
mov edx, dword [ecx + 8]
mov ebx, 6
cmp ebx, edx
jne 0x404833
mov eax, dword [ecx + 0xc]
cmp eax, 2
je 0x404851
mov ebx, 2
cmp ebx, eax
mov ebx, 6
sbb eax, eax
neg eax
test eax, eax
je 0x404869
cmp edx, 6
jne 0x40485a
mov eax, dword [ecx + 0xc]
cmp eax, 3
jne 0x404851
cmp dword [ecx + 0x10], 0xffffffff
sbb eax, eax
inc eax
jmp 0x404860
mov ecx, 3
cmp ecx, eax
jmp 0x40485c
cmp ebx, edx
sbb eax, eax
neg eax
test eax, eax
jne 0x404869
lea ebx, [eax + 1]
jmp 0x40486b
xor ebx, ebx
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 0
call fcn.00404ac0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], 4
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je case.default.0x4047f3
mov ecx, dword [eax]
sub ecx, 0x68
mov byte [ebp - 0xc], 0
cmp edi, dword [ecx + 0x18]
jae 0x4048da
mov eax, dword [ecx + 0x68]
add ecx, 0x68
test eax, eax
je 0x4048ef
lea ecx, [eax - 0x68]
jmp 0x4048c6
jbe 0x40491b
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x4048e8
lea ecx, [eax - 0x68]
jmp 0x4048c6
mov byte [ebp - 0xc], 1
add ecx, 0x68
lea edx, [esi + 0x68]
xorps xmm0, xmm0
movq qword [edx], xmm0
mov dword [edx + 8], 0
mov eax, dword [0x438ce4]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 8]
test eax, eax
je 0x404941
push edx
push dword [ebp - 0xc]
push ecx
push dword [ebp - 0x14]
call eax
jmp 0x404941
mov eax, dword [ecx + 0x50]
inc dword [eax + 0xc]
mov eax, dword [0x438ce4]
mov eax, dword [eax + 8]
cmp eax, 0xa
je 0x40493b
mov edx, 0xa
cmp edx, eax
sbb eax, eax
neg eax
je 0x404941
inc dword [ecx + 0x9c]
lea eax, [ebx*4 + 0x2c]
push eax
push 8
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi + 0x50], eax
test eax, eax
je case.default.0x4047f3
mov dword [esi + 0x54], eax
lea ecx, [esi + 0x54]
mov dword [esi + 0x58], eax
mov dword [eax], ecx
mov eax, dword [esi + 0x50]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x50]
mov dword [eax + 0x20], 9
mov eax, dword [esi + 0x50]
mov dword [eax + 0xc], 1
test ebx, ebx
je 0x404992
mov eax, dword [esi + 0x50]
mov dword [eax + 0x10], 1
mov bh, byte [ebp + 0xb]
mov bl, 1
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x34]
shl eax, 2
and edx, 0xfff7ffff
movzx ecx, bh
or edx, 0x40cc
and ecx, 0xfffffffb
or ecx, eax
mov eax, dword [ebp - 0x1c]
shl eax, 9
not eax
shl ecx, 0x16
xor eax, edx
and eax, 0x200
xor eax, edx
mov edx, dword [ebp - 4]
and eax, 0xfebfffff
or ecx, eax
mov dword [esi + 0x34], ecx
mov ecx, dword [0x438ce4]
mov eax, dword [ebp - 0x10]
cmp word [ecx + 0x16], ax
jne case.0x4047f3.2
mov eax, dword [edx + 0x34]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x78]
push eax
mov dword [esi + 0x74], 0
call dword [sym.imp.ntdll.dll_NtQuerySystemTime]
mov ecx, dword [0x438ce4]
movzx eax, word [ecx + 0x16]
cmp eax, 0x68
je 0x404a10
cmp ax, word [ebp - 0x10]
jne 0x404a28
lea eax, [esi + 0x50]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x60]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [esi + 0x58]
mov dword [eax + 4], eax
mov dword [eax], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], edi
mov eax, dword [edx + 0x50]
mov dword [esi + 0x20], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ecx
mov eax, dword [edx + 0x28]
add eax, edi
mov dword [esi + 0x1c], eax
mov eax, 1
mov word [esi + 0x38], ax
test bl, bl
jne 0x404a7d
mov dword [esi + 0x34], 0xc004
test bh, bh
je 0x404a7d
mov dword [esi + 0x34], 0x40c004
lea ecx, [esi + 0x3c]
pop edi
pop esi
mov dword [ecx + 4], ecx
mov dword [ecx], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc