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

Disassembly:
jmp 0x4da490
sub esp, 0xc8
mov eax, ecx
push ebx
push ebp
mov dword [esp + 8], eax
mov ebp, dword [eax]
push esi
push edi
mov ax, word [ebp + 0x2c]
mov dh, al
mov dl, ah
test dx, dx
je 0x4da50e
mov ax, word [ebp + 0x2a]
mov ch, al
mov cl, ah
cmp cx, 0x20
je 0x4da50e
movzx eax, cx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov word [esp + 0x3c], 0x103
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], str.invalid_e_phentsize:
push eax
mov word [esp + 0x38], 0x10a
mov dword [esp + 0x24], str.invalid_e_phentsize:
mov word [esp + 0x2c], 0xa03
mov dword [esp + 0x1c], 3
call fcn.00402b1c
mov ecx, dword [esp + 0x20]
jmp 0x4da6e9
mov ax, word [ebp + 0x2a]
mov ch, al
movzx esi, dx
mov cl, ah
mov eax, dword [ebp + 0x1c]
bswap eax
mov dword [esp + 0x14], eax
mov eax, esi
cdq
movzx edi, cx
mov ebx, eax
mov ecx, edx
mov eax, edi
cdq
push edx
push eax
push ecx
push ebx
call fcn.0040646a
mov ecx, dword [esp + 0x14]
mov ebx, eax
add ebx, ecx
adc edx, 0
test edx, edx
jb 0x4da597
ja 0x4da54d
cmp ebx, ecx
jb 0x4da597
mov eax, dword [esp + 0x10]
test edx, edx
ja 0x4da59b
jb 0x4da55c
cmp ebx, dword [eax + 4]
ja 0x4da59b
lea eax, [ecx + ebp]
shl esi, 5
add esi, eax
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00413ebc
mov esi, dword [esp + 0xe8]
add esp, 0xc
and byte [esi + 8], 0xfe
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, esi
mov dword [esi], ecx
mov dword [esi + 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret 4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
mov word [esp + 0x90], 0x103
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x8c], str.__e_phentsize_
push eax
mov word [esp + 0xa4], 0x103
mov dword [esp + 0x9c], str.__e_phnum_
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov word [esp + 0xb0], 0x103
mov dword [esp + 0xa8], str.:_e_phoff__0x
mov word [esp + 0xbc], 0x103
mov dword [esp + 0xb4], str.program_headers_are_longer_than_binary_of_size
mov word [esp + 0xc8], 0x10a
mov word [esp + 0xd4], 0x10a
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0x10f
mov word [esp + 0xe0], 0x109
mov dword [esp + 0x48], str.program_headers_are_longer_than_binary_of_size
mov word [esp + 0x50], 0x903
mov dword [esp + 0x58], str.:_e_phoff__0x
mov word [esp + 0x5c], 0x302
mov word [esp + 0x68], 0xf02
mov dword [esp + 0x70], str.__e_phnum_
mov word [esp + 0x74], 0x302
mov dword [esp + 0x7c], esi
mov word [esp + 0x80], 0xa02
mov dword [esp + 0x88], str.__e_phentsize_
mov word [esp + 0x8c], 0x302
mov dword [esp + 0x34], edi
mov word [esp + 0x38], 0xa02
mov dword [esp + 0x20], 3
call fcn.00402b1c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xe8]
add esp, 0xc
or byte [eax + 8], 1
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0xc8
ret 4