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

Disassembly:
push ebp
push edi
push esi
push ebx
or esi, 0xffffffff
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x41ec14
xor esi, esi
cmp dword [ebx + 0x14], 1
je 0x41ebf4
test byte [ebx + 0x50], 0xf
je 0x41ea13
lea eax, [ebx + 0xc8]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x424a48
mov dword [esp], eax
call fcn.0041a5f0
cmp eax, 1
jbe 0x41e9e6
or esi, 0xffffffff
jmp 0x41ebf4
mov eax, dword [ebx + 0xc0]
mov edx, dword [ebx + 0xc4]
mov word [ebx + 0xa8], 8
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], edx
mov eax, dword [ebx + 0xb8]
mov edx, dword [ebx + 0xbc]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edx
mov edi, dword [ebx + 0x5c]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
cmp dword [ebx + 0x6c], 0
not ecx
lea eax, [ecx - 1]
mov dword [esp + 0x44], eax
ja 0x41e9de
cmp dword [ebx + 0x7c], 0
ja 0x41e9de
mov eax, dword [ebx + 0x4e00c]
lea ecx, [esp + 0x5e]
lea edx, [esp + 0x5c]
lea ebp, [ebx + 0x80]
call fcn.00415fc6
mov eax, dword [ebx + 0x68]
mov esi, dword [ebx + 0xa8]
mov ecx, 0x1e
mov edi, ebp
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x4c], eax
xor eax, eax
cmp si, 1
rep stosb byte es:[edi], al
sbb eax, eax
mov byte [ebx + 0x80], 0x50
mov byte [ebx + 0x81], 0x4b
not eax
mov byte [ebx + 0x82], 3
mov byte [ebx + 0x83], 4
and eax, 0x14
mov byte [ebx + 0x84], al
mov eax, esi
mov byte [ebx + 0x88], al
mov eax, esi
shr ax, 8
mov byte [ebx + 0x89], al
mov al, byte [esp + 0x5c]
mov byte [ebx + 0x8a], al
mov eax, dword [esp + 0x5c]
shr ax, 8
mov byte [ebx + 0x8b], al
mov al, byte [esp + 0x5e]
mov byte [ebx + 0x8c], al
mov ax, word [esp + 0x5e]
shr ax, 8
mov byte [ebx + 0x8d], al
lea eax, [ebx + 0x8e]
call fcn.00414900
mov edx, dword [esp + 0x48]
lea eax, [ebx + 0x92]
call fcn.00414900
mov edx, dword [esp + 0x4c]
lea eax, [ebx + 0x96]
call fcn.00414900
mov al, byte [esp + 0x44]
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0x9d], 0
mov byte [ebx + 0x9a], al
mov eax, dword [esp + 0x44]
shr ax, 8
mov byte [ebx + 0x9b], al
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], ebp
mov eax, dword [ebx + 0xa0]
mov edx, dword [ebx + 0xa4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x3c]
cmp eax, 0x1e
jne 0x41e9de
mov eax, dword [ebx + 0x4e008]
mov edx, dword [ebx + 0x5c]
movzx ecx, word [esp + 0x44]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x5e]
mov esi, dword [ebx + 0xa0]
mov edi, dword [ebx + 0xa4]
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x5c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0xa8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x18], eax
mov esi, dword [ebx + 0x68]
mov eax, ebx
mov edi, dword [ebx + 0x6c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov esi, dword [ebx + 0x60]
mov edi, dword [ebx + 0x64]
mov dword [esp + 4], 0
mov dword [esp], 0x424a48
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
call fcn.00416311
test eax, eax
je 0x41e9de
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x7c]
xor esi, esi
inc dword [ebx + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebx + 0x5c]
mov dword [ebx + 0x4e00c], 0
test eax, eax
je 0x41ec14
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx + 0x5c], 0
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret