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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x44f0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x170], ecx
cmp dword [ebp + 8], 0
je 0x404c15
cmp dword [ebp + 0xc], 0
jne 0x404c1c
xor eax, eax
jmp 0x404ffe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x10c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x178], eax
mov ecx, 8
imul ecx, ecx, 0
mov edx, dword [ebp - 0x178]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x10c]
add edx, dword [ecx]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x10c]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x110], 0
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, eax
jne 0x404d30
mov cx, word [ebp + 0xc]
mov word [ebp - 0x118], cx
movzx edx, word [ebp - 0x118]
mov eax, dword [ebp - 0x108]
cmp edx, dword [eax + 0x10]
jb 0x404cff
movzx ecx, word [ebp - 0x118]
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x108]
add eax, dword [edx + 0x14]
cmp ecx, eax
jb 0x404d06
xor eax, eax
jmp 0x404ffe
movzx eax, word [ebp - 0x118]
mov ecx, dword [ebp - 0x108]
sub eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [edx + eax*4]
mov dword [ebp - 0x110], ecx
jmp 0x404e62
mov edx, 1
imul edx, edx, 0
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x404d4a
xor eax, eax
jmp 0x404ffe
mov dword [ebp - 0x120], 0
jmp 0x404d65
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [eax + 0x18]
jae 0x404e62
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x10c]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dl, byte [ecx]
mov byte [ebp - 0x113], dl
mov eax, dword [ebp - 0x12c]
cmp dl, byte [eax]
jne 0x404e08
cmp byte [ebp - 0x113], 0
je 0x404dfc
mov ecx, dword [ebp - 0x128]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x111], dl
mov eax, dword [ebp - 0x12c]
cmp dl, byte [eax + 1]
jne 0x404e08
add dword [ebp - 0x128], 2
add dword [ebp - 0x12c], 2
cmp byte [ebp - 0x111], 0
jne 0x404daa
mov dword [ebp - 0x13c], 0
jmp 0x404e13
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x164], edx
cmp dword [ebp - 0x164], 0
jne 0x404e5d
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x174]
mov dx, word [ecx + eax*2]
mov word [ebp - 0x138], dx
movzx eax, word [ebp - 0x138]
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x10c]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x110], edx
jmp 0x404e62
jmp 0x404d56
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x110]
ja 0x404ff8
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x108]
add edx, dword [ecx + 4]
cmp dword [ebp - 0x110], edx
jae 0x404ff8
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x11c]
mov cl, byte [eax]
mov byte [ebp - 0x112], cl
add dword [ebp - 0x11c], 1
cmp byte [ebp - 0x112], 0
jne 0x404eb6
mov edx, dword [ebp - 0x11c]
sub edx, dword [ebp - 0x158]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xff
jbe 0x404f05
xor eax, eax
jmp 0x404ffe
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.004050b0
add esp, 0xc
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x140], ecx
cmp dword [ebp - 0x140], 0x100
jae 0x404f3c
jmp 0x404f41
call fcn.0042934f
mov edx, dword [ebp - 0x140]
mov byte [ebp + edx - 0x104], 0
push 0x4431a0
lea eax, [ebp - 0x104]
push eax
call fcn.004050d0
add esp, 8
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x404f79
xor eax, eax
jmp 0x404ffe
mov ecx, dword [ebp - 0x134]
mov byte [ecx], 0
lea edx, [ebp - 0x104]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x148]
push ecx
call dword [0x43d0a0]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x404fd9
mov edx, dword [ebp - 0x148]
push edx
call dword [0x43d0a8]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x404fd9
xor eax, eax
jmp 0x404ffe
mov eax, dword [ebp - 0x168]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov ecx, dword [ebp - 0x170]
call fcn.00404bf0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427df5
mov esp, ebp
pop ebp
ret 8