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

Disassembly:
mov eax, 0x2114
call fcn.00466a00
mov eax, dword [0x48d1f4]
xor eax, esp
mov dword [esp + 0x2110], eax
mov eax, dword [esp + 0x2120]
push ebx
mov ebx, dword [esp + 0x2120]
push ebp
mov ebp, dword [esp + 0x212c]
push esi
push edi
mov edi, dword [esp + 0x2128]
push 0x800
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1124]
mov dword [esp + 0x18], ecx
lea esi, [edi + 0x3458]
mov dword [esp + 0x24], edi
push esi
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
call fcn.00456ab0
cmp byte [edi + 0x4523], 0
je 0x404116
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x84dc], 0
je 0x404116
push 1
push esi
call fcn.0043cac0
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004087a0
test al, al
je 0x4042b5
mov ebp, dword [esp + 0x28]
cmp ebp, dword [esp + 0x24]
jae 0x4042b1
mov edi, edi
push ebp
mov ecx, ebx
call fcn.00407fc0
mov esi, eax
lea edi, [esp + 0x80]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xac]
cmp eax, 2
je 0x40416d
cmp eax, 1
jne 0x40429e
mov edi, dword [esp + 0x20]
push 0x800
mov eax, dword [edi + 0x7e50]
mov ecx, dword [edi + 0x7e54]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x88]
mov dword [esp + 0xc4], ecx
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x40]
call fcn.00406e10
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x120]
push esi
push eax
call fcn.00456a40
test eax, eax
jne 0x4042a6
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], al
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x7138], 2
je 0x40422e
cmp byte [eax + 0x715f], 0
jne 0x4041ec
cmp byte [eax + 0x7160], 0
je 0x404233
cmp dword [eax + 0x84e8], 1
lea ecx, [edi + 0x4470]
jne 0x4043fa
call fcn.00457e80
lea ecx, [esp + 0x98]
mov dword [esp + 0x18], eax
mov esi, edx
call fcn.00457e80
cmp edx, esi
jg 0x4043ec
jl 0x40422a
cmp eax, dword [esp + 0x18]
ja 0x4043ec
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x7138], 4
jne 0x40443d
mov ecx, edi
call fcn.0040edf0
test al, al
jne 0x404438
push 7
lea eax, [edi + 0x4470]
push eax
push dword [edi + 0x4494]
push dword [edi + 0x4490]
push 0
push dword [esp + 0x94]
push dword [esi + 0x40]
call fcn.00459900
sub eax, 1
je 0x404438
sub eax, 5
jne 0x40443d
push 0xff
mov ecx, 0x49d17c
call fcn.00421270
jmp 0x40443d
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
inc ebp
cmp ebp, dword [esp + 0x24]
jb 0x404140
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0x7e50]
mov ecx, dword [edi + 0x7e54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], ecx
xor cl, cl
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0x40]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x30], esi
mov byte [esp + 0x13], cl
cmp byte [eax + 0x73c2], cl
je 0x404394
mov ecx, ebp
call fcn.00456d40
mov ecx, ebp
call fcn.00456bb0
test eax, eax
je 0x404390
push 5
push esi
push eax
call fcn.00430310
test al, al
jne 0x404626
mov ecx, ebp
call fcn.00456bb0
test eax, eax
jne 0x404374
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x73c2], 0
je 0x4043b9
cmp byte [edi + 0x4523], 0
jne 0x4043b9
mov dword [esp + 0x5c], 5
test cl, cl
je 0x4043c1
mov dword [esp + 0x5c], 4
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
call fcn.00407fd0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004669f1
add esp, 0x2114
ret 0x10
mov esi, dword [esp + 0x14]
mov byte [esp + 0x13], 0
jmp 0x404233
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dword [esp + 0x9c], ecx
jb 0x40422e
mov eax, dword [esp + 0x98]
ja 0x40441d
cmp eax, edx
jb 0x40422e
cmp eax, edx
jne 0x40442e
cmp dword [esp + 0x9c], ecx
je 0x40422e
mov byte [esp + 0x13], 0
jmp 0x404233
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x40]
cmp dword [eax + 0x84dc], 0
je 0x4045ef
mov ecx, edi
call fcn.0040edf0
test al, al
je 0x404466
cmp byte [esp + 0xcc], 0
jne 0x4045ef
mov al, byte [esp + 0x13]
test al, al
je 0x4044e7
cmp dword [esp + 0xac], 1
je 0x404573
xor esi, esi
mov dword [esp + 0xac], 1
mov dword [esp + 0xc4], 0
cmp dword [ebx + 0x14], esi
jbe 0x404573
lea ecx, [ecx]
push esi
mov ecx, ebx
call fcn.00407fc0
cmp dword [eax + 0x2c], 4
jne 0x4044dc
push esi
mov ecx, ebx
call fcn.00407fc0
lea ecx, [ebp + 1]
cmp dword [eax + 0x30], ecx
jne 0x4044dc
push esi
mov ecx, ebx
call fcn.00407fc0
push esi
mov ecx, ebx
mov dword [eax + 0x44], 0
call fcn.00407fc0
mov dword [eax + 0x30], 0
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x4044a0
jmp 0x40456f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc4]
inc ecx
mov dword [esp + 0xc4], ecx
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x84dc]
cmp eax, 1
jbe 0x40456f
cmp ecx, eax
jb 0x40456f
xor esi, esi
lea eax, [ecx - 1]
mov dword [esp + 0xc4], eax
cmp dword [ebx + 0x14], esi
jbe 0x40456f
mov edi, dword [esp + 0x2c]
push esi
mov ecx, ebx
call fcn.00407fc0
cmp dword [eax + 0x2c], 4
jne 0x404569
push esi
mov ecx, ebx
call fcn.00407fc0
lea ecx, [ebp + 1]
cmp dword [eax + 0x30], ecx
jne 0x404569
push esi
mov ecx, ebx
call fcn.00407fc0
push esi
mov ecx, ebx
cmp dword [eax + 0x44], 1
jbe 0x40455a
call fcn.00407fc0
dec dword [eax + 0x44]
jmp 0x404569
call fcn.00407fc0
mov dword [eax + 0x2c], 5
mov byte [edi], 1
inc esi
cmp esi, dword [ebx + 0x14]
jb 0x404521
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [edx + 0x58]
jbe 0x404586
mov dword [edx + 0x58], ecx
lea esi, [esp + 0x80]
mov ecx, 0x14
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xfc], 4
lea ecx, [esp + 0x1120]
mov dword [esp + 0xd0], ecx
test al, al
je 0x4045d4
lea eax, [esp + 0xd0]
mov dword [esp + 0x100], 0
push eax
mov ecx, ebx
call fcn.00407fd0
jmp 0x404602
lea eax, [ebp + 1]
mov ecx, ebx
mov dword [esp + 0x100], eax
lea eax, [esp + 0xd0]
push eax
call fcn.00407fd0
jmp 0x404602
xor eax, eax
cmp byte [esp + 0x13], al
setne al
add eax, 3
mov dword [esp + 0xac], eax
push ebp
mov ecx, ebx
call fcn.00407fc0
mov edi, eax
lea esi, [esp + 0x80]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xac]
jmp 0x4043d1
mov cl, 1
jmp 0x404394