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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10f4], 0
je 0x404673
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 4
mov dword [esp + 0x14], 0
ja case.0x404684.1
jmp dword [eax*4 + 0x404c40]
mov eax, dword [edi + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404691
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 0x64]
jb 0x4046aa
call fcn.004024a0
test eax, eax
mov ebx, dword [ebp + 0x10]
jne 0x4046c1
mov esi, dword [ebx + 4]
push 0xfde9
lea eax, [edi + 0x60]
call fcn.00402800
cmp dword [edi + 0x34], 0
je case.0x404684.1
lea eax, [esp + 0x40]
call fcn.00402350
mov dword [esp + 0x78], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
push 0xfde9
lea eax, [esp + 0x44]
mov dword [esp + 0x38], ecx
call fcn.00402800
mov dx, word [ebx + 0x1e]
mov ecx, dword [edi + 0x1104]
mov dword [esp + 0x38], eax
mov ax, word [ebx + 0x20]
mov word [esp + 0x3c], dx
push ecx
lea edx, [esp + 0x34]
mov word [esp + 0x42], ax
mov eax, dword [edi + 0x34]
push edx
call eax
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0041b267
add esp, 0xc
jmp case.0x404684.1
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx + 4]
push 0xfde9
lea eax, [edi + 0x60]
call fcn.00402800
mov eax, dword [ebx + 0x24]
xor ecx, ecx
cmp eax, ecx
je 0x40477a
mov dword [edi + 0x10e4], eax
mov dword [edi + 0x10e8], ecx
mov dword [edi + 0x10ec], ecx
mov dword [esp + 0x14], 0xffffffff
jmp case.0x404684.1
cmp dword [edi + 0x38], ecx
je case.0x404684.1
lea eax, [esp + 0x40]
call fcn.00402350
mov dword [esp + 0x78], 1
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x34], eax
push 0xfde9
lea eax, [esp + 0x44]
mov dword [esp + 0x34], edx
call fcn.00402800
mov cx, word [ebx + 0x1e]
mov dx, word [ebx + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x1104]
push eax
mov eax, dword [edi + 0x38]
mov word [esp + 0x40], cx
mov ecx, dword [ebx + 0x24]
mov word [esp + 0x42], dx
push ecx
lea edx, [esp + 0x38]
push edx
call eax
mov dword [esp + 0x84], 0xffffffff
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push ecx
jmp 0x404c1f
lea eax, [esp + 0x28]
call fcn.00402350
lea eax, [esp + 0x20]
mov dword [esp + 0x78], 2
call fcn.00402350
lea eax, [esp + 0x18]
mov byte [esp + 0x78], 3
call fcn.00402350
lea eax, [esp + 0x30]
mov byte [esp + 0x78], 4
call fcn.00402350
lea eax, [esp + 0x40]
mov byte [esp + 0x78], 5
call fcn.00402350
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x78], 6
test byte [ecx + 0x1c], 0x80
mov eax, 0xfde9
jne 0x404853
mov eax, dword [edi + 0x1100]
mov esi, dword [ecx + 4]
push eax
lea eax, [esp + 0x1c]
call fcn.00402800
lea esi, [esp + 0x18]
call fcn.00402750
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
mov ecx, esi
call fcn.00402b00
add esp, 4
lea edx, [edi + 0x58]
lea eax, [esp + 0x30]
call fcn.004025b0
lea ebx, [esp + 0x20]
lea eax, [esp + 0x30]
call fcn.00402690
lea edx, [esp + 0x30]
lea eax, [esp + 0x40]
call fcn.004025b0
lea ebx, [esp + 0x28]
lea eax, [esp + 0x40]
call fcn.00402690
cmp dword [edi + 0x28], 0
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x30]
je 0x404920
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], edx
movzx edx, word [eax + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov word [esp + 0x68], dx
movzx edx, word [eax + 0x1a]
movzx eax, word [eax + 0x18]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ecx, dword [edi + 0x1104]
mov eax, dword [edi + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
call eax
add esp, 8
test eax, eax
je 0x404a22
cmp dword [edi + 0x10f8], 0
je 0x404972
mov ecx, dword [ebp + 0x10]
lea esi, [edi + 0x10c0]
mov edi, dword [ecx]
call fcn.00402870
mov edx, dword [ebp + 8]
mov edi, 0xff000000
add edx, 0x48
mov esi, edi
mov dword [esp + 0x14], edx
call fcn.004028c0
test eax, eax
je 0x404965
mov edx, dword [esp + 0x14]
add edi, 1
mov esi, edi
call fcn.004028c0
test eax, eax
jne 0x404953
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], edi
jmp 0x404aef
push esi
call fcn.00402940
add esp, 4
test eax, eax
je 0x4049ee
mov dword [edi + 0x10e4], 8
mov dword [edi + 0x10e8], eax
mov dword [edi + 0x10ec], 0
or edi, 0xffffffff
push ebx
mov dword [esp + 0x18], edi
mov byte [esp + 0x7c], 5
call fcn.0041b267
add esp, 4
push esi
mov byte [esp + 0x7c], 4
call fcn.0041b267
mov byte [esp + 0x7c], 3
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0041b267
mov byte [esp + 0x7c], 2
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0041b267
mov dword [esp + 0x7c], edi
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
jmp 0x404c1f
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push 0x180
push 0x8321
push ebx
mov ecx, edi
call eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
jg 0x404a74
mov dword [edi + 0x10e4], 8
mov dword [edi + 0x10e8], ecx
mov dword [edi + 0x10ec], ecx
push ebx
mov byte [esp + 0x7c], 5
call fcn.0041b267
add esp, 4
push esi
mov byte [esp + 0x7c], 4
call fcn.0041b267
mov byte [esp + 0x7c], 3
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.0041b267
mov byte [esp + 0x7c], 2
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0041b267
mov dword [esp + 0x7c], 0xffffffff
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
jmp 0x404c1f
mov edx, dword [edi + 0xc]
mov word [edx], cx
mov edx, dword [edi + 0x14]
mov word [edx], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea eax, [edi + 0x14]
lea edx, [esp + 0x40]
mov dword [edi + 0x1c], ecx
call fcn.004025b0
lea eax, [edi + 0xc]
lea edx, [esp + 0x18]
call fcn.004025b0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x404aef
mov edx, dword [edi + 0x14]
fldz
mov ecx, dword [edi + 0xc]
fstp dword [esp + 0x58]
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x1104]
mov dword [esp + 0x54], ecx
push edx
lea ecx, [esp + 0x4c]
push ecx
call eax
add esp, 8
push ebx
mov byte [esp + 0x7c], 5
call fcn.0041b267
add esp, 4
push esi
mov byte [esp + 0x7c], 4
call fcn.0041b267
mov byte [esp + 0x7c], 3
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0041b267
mov byte [esp + 0x7c], 2
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0041b267
mov dword [esp + 0x7c], 0xffffffff
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
jmp 0x404c1f
lea eax, [esp + 0x40]
call fcn.00402350
lea eax, [esp + 0x30]
mov dword [esp + 0x78], 7
call fcn.00402350
mov ecx, dword [ebp + 0x10]
mov byte [esp + 0x78], 8
test byte [ecx + 0x1c], 0x80
mov eax, 0xfde9
jne 0x404b74
mov eax, dword [edi + 0x1100]
mov esi, dword [ecx + 4]
push eax
lea eax, [esp + 0x34]
call fcn.00402800
lea esi, [esp + 0x30]
call fcn.00402750
lea edx, [edi + 0x58]
lea eax, [esp + 0x40]
call fcn.004025b0
mov ebx, esi
lea eax, [esp + 0x40]
call fcn.00402690
cmp dword [edi + 0x10f8], 0
jne 0x404bd0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, edi
call fcn.00404580
movzx edx, word [ebx + 0x1a]
movzx eax, word [ebx + 0x18]
push edx
push eax
mov ax, word [ebx + 0x1c]
mov ebx, dword [esp + 0x48]
call fcn.00404d10
jmp 0x404bd4
mov ebx, dword [esp + 0x40]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x404bfc
cmp dword [edi + 0x10f8], 0
je 0x404bec
lea eax, [edi + 0x10c0]
jmp 0x404bee
xor eax, eax
mov edx, dword [edi + 0x1104]
push edx
push eax
push ebx
call ecx
add esp, 0xc
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x18], 1
call fcn.0041b267
add esp, 4
mov dword [esp + 0x78], 0xffffffff
push ebx
call fcn.0041b267
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc