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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42800c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x435164]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x19c], eax
mov dword [esp + 0x1c], ebx
call dword [0x429514]
mov esi, eax
xor eax, eax
mov byte [esp + 0x90], 0
mov ecx, 0x40
lea edi, [esp + 0x91]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x94]
push eax
push esi
mov dword [esp + 0x24], esi
call dword [0x429510]
lea ecx, [ebx + 0x200]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.004103b0
add esp, 8
test eax, eax
je 0x404e62
push esi
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call fcn.00403c80
push 1
xor edi, edi
mov esi, 0xf
push 0x429bdc
lea ecx, [esp + 0x28]
mov dword [esp + 0x1b4], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov byte [esp + 0x2c], 0
call fcn.00402e20
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1ac], 1
jae 0x404b6f
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x88]
push ecx
push eax
push edx
push edi
lea ecx, [esp + 0x84]
call fcn.00403560
test eax, eax
jne 0x404bcc
mov eax, dword [esp + 0x38]
mov ebx, 0x10
cmp eax, ebx
jb 0x404ba8
mov eax, dword [esp + 0x24]
push eax
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x8c], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x404e62
mov ecx, dword [esp + 0x78]
push ecx
jmp 0x404e5a
push edi
push 0x429bdb
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
call fcn.00402e20
mov byte [esp + 0x1ac], 2
lea esi, [ebx + 0x1c8]
mov dword [esp + 0x14], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x404c70
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 5
cmp edi, eax
jae 0x404c70
test ecx, ecx
je 0x404c69
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 5
cmp eax, edi
jbe 0x404c69
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x8c]
add ecx, edx
cmp eax, 0x10
mov eax, dword [esp + 0x78]
jae 0x404c3f
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x88]
push edx
push eax
mov eax, dword [ecx + 0x14]
push eax
push 0
call fcn.00403560
test eax, eax
jne 0x404c5b
inc dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
add eax, 0x20
mov dword [esp + 0x14], eax
jmp 0x404c02
mov ecx, esi
call fcn.00404710
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x404c8a
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402d30
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x404cfd
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp eax, esi
jb 0x404cac
mov edx, dword [esp + 0x40]
push edx
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x38], esi
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x404cd5
mov eax, dword [esp + 0x24]
push eax
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x404e62
mov ecx, dword [esp + 0x78]
push ecx
jmp 0x404e5a
push 0
push 0x429bdb
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.00402e20
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x1b8], 3
call fcn.00403a10
push 0
push 0x429bdb
lea ecx, [esp + 0x60]
call fcn.00403b00
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x404d5b
lea eax, [esp + 0x5c]
mov esi, dword [0x42950c]
push eax
mov eax, dword [ebx + 0x1f8]
push eax
call esi
mov ecx, dword [ebx + 0x1f4]
push 0x429bdb
push ecx
call esi
mov edx, dword [esp + 0x18]
mov edi, dword [fcn.004294fc]
push 7
push edx
call edi
mov esi, dword [ebp + 8]
push 5
push esi
call edi
mov edi, dword [0x42943c]
push 0
call edi
push 1
mov ebx, eax
call edi
cdq
sub eax, edx
push 1
sar eax, 1
sub eax, 0x70
push 0xdf
push 0x122
push eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub eax, 0x91
push eax
push esi
call dword [0x4294d4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1f4]
xor edi, edi
push edi
push ecx
push 7
push esi
call dword [fcn.0042941c]
mov eax, dword [esp + 0x70]
mov esi, 0x10
cmp eax, esi
jb 0x404dfa
mov edx, dword [esp + 0x5c]
push edx
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x54], esi
mov ebx, 0xf
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], edi
mov byte [esp + 0x5c], 0
jb 0x404e1f
mov eax, dword [esp + 0x40]
push eax
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
jb 0x404e3f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041d6f7
add esp, 4
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
jb 0x404e62
mov edx, dword [esp + 0x78]
push edx
call fcn.0041d6f7
add esp, 4
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19c]
call fcn.0040fc74
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4