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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5a50
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5350e4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push edi
mov eax, dword [0x5350e4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], eax
push 0x5237ec
lea eax, [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], 0
call fcn.00402890
mov edi, 5
cmp dword [eax + 4], edi
je 0x404498
mov dword [esp + 0x24], 0x5235c3
jmp 0x40449f
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
push 0x5237f0
lea eax, [ebp + 0x10]
call fcn.00402890
cmp dword [eax + 4], edi
je 0x4044bb
mov dword [esp + 0x10], 0x5235c3
jmp 0x4044c2
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], edx
push 0x5237f4
lea eax, [ebp + 0x10]
call fcn.00402890
cmp dword [eax + 4], edi
je 0x4044de
mov dword [esp + 0x18], 0x5235c3
jmp 0x4044e5
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
push 0x5237fc
lea eax, [ebp + 0x10]
call fcn.00402890
cmp dword [eax + 4], edi
je 0x404501
mov dword [esp + 0x14], 0x5235c3
jmp 0x404508
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
push 0x523810
lea eax, [ebp + 0x10]
call fcn.00402890
cmp dword [eax + 4], edi
je 0x404524
mov dword [esp + 0x20], 0x5235c3
jmp 0x40452b
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
push 0x523808
lea eax, [ebp + 0x10]
call fcn.00402890
cmp dword [eax + 4], edi
mov edi, 0x5235c3
jne 0x404545
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, 0x5235c3
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404570
test dl, dl
je 0x40456c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404570
add eax, 2
add ecx, 2
test dl, dl
jne 0x404550
xor eax, eax
jmp 0x404575
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ecx
jne 0x40459a
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], cl
push 0x5235c3
mov ecx, esi
call fcn.00402140
jmp 0x4048a5
mov eax, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045b0
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.00402140
mov dword [esp + 0x80], 0
test edi, edi
je 0x4045fc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045d8
sub eax, edx
je 0x4045fc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045e8
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.00402140
test ebx, ebx
je 0x404629
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404605
sub eax, edx
je 0x404629
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404615
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.00402140
mov eax, dword [esp + 0x3c]
mov edi, 0x10
cmp dword [esp + 0x50], edi
jae 0x40463c
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
call fcn.004048d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40470c
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x404665
lea eax, [esp + 0x3c]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00404ac0
add esp, 4
test eax, eax
jge 0x4046e1
push 0
cmp eax, 0xffffff9c
jne 0x4046a0
push 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push esi
call fcn.00403770
add esp, 0x10
jmp 0x40489c
cmp eax, 0xffffff38
jne 0x4046c4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push 5
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.00403770
add esp, 0x10
jmp 0x40489c
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 1
push edx
mov edx, dword [esp + 0x1c]
push esi
call fcn.00403770
add esp, 0x10
jmp 0x40489c
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x4046ef
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push eax
mov edx, ebx
call fcn.004048d0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40470c
push eax
push 1
jmp 0x404685
mov eax, dword [esp + 0x24]
mov ecx, 0x5238bc
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404735
test dl, dl
je 0x404731
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404735
add eax, 2
add ecx, 2
test dl, dl
jne 0x404715
xor eax, eax
jmp 0x40473a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404801
mov eax, dword [ebx + 0x1c]
xor edi, edi
test eax, eax
je 0x404767
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push edi
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
call eax
add esp, 0x14
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edi
push 0
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00403770
add esp, 0x10
mov byte [esp + 0x80], 1
test edi, edi
je 0x404799
mov edx, dword [ebx + 0x14]
push edi
call edx
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
mov ebx, 0xf
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00401e80
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jb 0x4047d4
mov ecx, dword [esp + 0x58]
push ecx
call 0x41c6f0
add esp, 4
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
cmp dword [esp + 0x50], edi
jb 0x4048a5
mov edx, dword [esp + 0x3c]
push edx
call 0x41c6f0
add esp, 4
jmp 0x4048a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [ebx + 0x18]
push ecx
push edx
call eax
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40484b
mov ecx, dword [esp + 0x18]
push edi
push 0
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x20]
call fcn.00403770
mov byte [esp + 0x90], 2
mov eax, dword [ebx + 0x14]
push edi
call eax
add esp, 0x14
jmp 0x404871
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 1
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
call fcn.00403770
add esp, 0x10
mov byte [esp + 0x80], 3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00401e80
lea ecx, [esp + 0x54]
call fcn.00401c70
lea ecx, [esp + 0x38]
call fcn.00401c70
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call 0x42657e
mov esp, ebp
pop ebp
ret