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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x453006
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x469424]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x469424]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
xor esi, esi
push esi
lea eax, [edi + 0x40]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.004019c0
push 1
push 0x45a8d0
lea eax, [esp + 0x28]
mov dword [esp + 0xd8], esi
call fcn.00402990
push esi
lea ebx, [edi + 0x24]
push ebx
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.00402a80
push 3
push 0x45ab6c
mov eax, esi
call fcn.00402990
mov eax, dword [esp + 0x24]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jae 0x4046b2
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0043c0b0
add esp, 8
test eax, eax
je 0x4046f1
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
cmp dword [esp + 0x38], esi
mov edi, eax
jb 0x4046ea
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041edce
add esp, 4
mov eax, edi
jmp 0x4049ba
xor eax, eax
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.0043b7c3
add esp, 4
push 0x40
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004401b0
xor eax, eax
add esp, 0xc
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov byte [esp + 0xd0], 1
cmp dword [ebx + 0x18], esi
jb 0x40474e
mov edx, dword [ebx + 4]
jmp 0x404751
lea edx, [ebx + 4]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404756
sub eax, ebx
mov ebx, eax
cmp ebx, 0x40
jb 0x404781
push 0x3f
push edx
lea ecx, [esp + 0x70]
push 0x40
push ecx
call fcn.0043a540
mov byte [esp + 0xb7], 0
jmp 0x404794
push ebx
push edx
lea edx, [esp + 0x70]
push 0x40
push edx
call fcn.0043a540
mov byte [esp + ebx + 0x78], 0
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp dword [esp + 0x38], esi
jae 0x4047a5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
call fcn.00405070
cmp dword [esp + 0x38], esi
mov bl, al
mov eax, dword [esp + 0x24]
jae 0x4047bf
lea eax, [esp + 0x24]
push eax
call fcn.0043c1fd
add esp, 4
test bl, bl
jne 0x404809
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov edi, eax
lea eax, [esp + 0x4c]
call fcn.00405040
cmp dword [esp + 0x38], esi
jb 0x4046ea
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041edce
add esp, 4
mov eax, edi
jmp 0x4049ba
lea ecx, [esp + 0x4c]
call fcn.004051e0
test al, al
jne 0x404845
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push 3
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov esi, eax
lea eax, [esp + 0x4c]
call fcn.00405040
lea ecx, [esp + 0x20]
call fcn.00401930
mov eax, esi
jmp 0x4049ba
mov ecx, dword [esp + 0xac]
xor ebx, ebx
cmp ecx, ebx
jne 0x404858
mov dword [esp + 0x14], ebx
jmp 0x404868
mov eax, dword [esp + 0xb0]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
jbe 0x404962
test ecx, ecx
je 0x404951
mov eax, dword [esp + 0xb0]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x404951
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x404951
push 0x78
call fcn.0041eda3
add esp, 4
test eax, eax
je 0x4048b5
call fcn.00401f80
mov ebx, eax
jmp 0x4048b7
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4049e9
push 0x10
lea ecx, [esi + 0x400]
push ecx
xor eax, eax
lea edx, [esp + 0x44]
push 0x10
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.0043a540
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4048f2
sub eax, edx
push eax
lea edi, [ebx + 0x40]
push esi
mov ecx, edi
call fcn.00401b50
push edi
call fcn.00401290
lea ecx, [ebx + 0x5c]
lea eax, [esp + 0x3c]
call fcn.0040ea10
test al, al
je 0x4049de
add ebx, 8
lea edx, [esi + 0x200]
push ebx
call fcn.00401270
mov esi, dword [esp + 0x10]
add esi, 0x5c
lea ebx, [esp + 0x1c]
call fcn.00407f40
mov ecx, dword [esp + 0xac]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ebx, 1
cmp ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jb 0x404877
mov eax, dword [edi]
push 6
mov ecx, edi
mov edx, dword [eax + 0x1c]
call edx
lea esi, [esp + 0x4c]
call fcn.004055c0
mov eax, dword [esp + 0xac]
xor esi, esi
cmp eax, esi
je 0x40498c
push eax
call fcn.0041edce
add esp, 4
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
jb 0x4049b5
mov eax, dword [esp + 0x24]
push eax
call fcn.0041edce
add esp, 4
mov eax, 6
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00439d55
mov esp, ebp
pop ebp
ret
mov esi, ebx
call fcn.00404a00
mov edi, dword [esp + 0x10]
call fcn.00404e00
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 3
jmp 0x404968