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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov esi, dword [ebx]
mov edi, dword [esi + 4]
cmp byte [ebx + 0x49], 4
jne 0x419013
mov eax, dword [ebx + 0x44]
jmp 0x4191e6
push ebx
push dword [ebx + 0x3c]
push edi
call fcn.00412d9f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419031
mov eax, dword [ebp - 4]
jmp 0x4191e6
cmp dword [ebx + 0x10], 0
jne 0x41907b
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00412c1b
add esp, 0x10
test byte [ebx + 0x48], 2
je 0x41907b
cmp dword [ebp + 0x14], 0
jne 0x41905c
cmp dword [ebp + 0x10], 0
jbe 0x41907b
jmp 0x41905e
jle 0x41907b
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, 1
sbb edx, 0
cmp edx, dword [ebx + 0x1c]
jne 0x41907b
cmp eax, dword [ebx + 0x18]
jne 0x41907b
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 8], 0
jne 0x4190ab
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412e3d
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4190ab
mov eax, dword [ebp - 4]
jmp 0x4191e6
movsx edx, word [ebx + 0x4c]
mov esi, dword [ebx + edx*4 + 0x78]
mov edi, dword [edi + 0x50]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push esi
call fcn.0041727e
add esp, 0x24
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4191e3
movsx ecx, word [ebx + 0x4c]
movzx eax, word [ebx + ecx*2 + 0x4e]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x41917a
push dword [esi + 0x44]
call fcn.0040fcb7
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4191e3
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + ecx*2]
shl eax, 8
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx*2 + 1]
or eax, edx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
cmp byte [esi + 5], 0
jne 0x41914a
push 4
push dword [ebp - 0x14]
push edi
call fcn.00459578
add esp, 0xc
lea eax, [ebp - 0x16]
push eax
push dword [ebp - 0x14]
push esi
call fcn.0041712c
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx edx, word [ebp - 0x16]
push edx
push dword [ebp - 0x10]
push esi
call fcn.0041751d
add esp, 0x10
cmp dword [ebp - 4], 0
jne 0x4191e3
jmp 0x41919b
cmp dword [ebp - 8], 0
jge 0x41919b
cmp word [esi + 0x12], 0
jbe 0x41919b
movsx ecx, word [ebx + 0x4c]
inc word [ebx + ecx*2 + 0x4e]
mov ax, word [ebx + ecx*2 + 0x4e]
movzx edx, ax
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x10]
push esi
call fcn.0041763f
add esp, 0x1c
mov word [ebx + 0x2c], 0
cmp dword [ebp - 4], 0
jne 0x4191e3
cmp byte [esi + 1], 0
je 0x4191e3
and byte [ebx + 0x48], 0xfd
push ebx
call fcn.00418e82
pop ecx
mov dword [ebp - 4], eax
movsx eax, word [ebx + 0x4c]
mov edx, dword [ebx + eax*4 + 0x78]
mov byte [edx + 1], 0
mov byte [ebx + 0x49], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret