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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov dword [0x5091e0], eax
call fcn.00414580
test eax, eax
mov dword [esp + 0x20], eax
je 0x413768
mov eax, dword [0x5091e0]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004022e0
mov dword [esp + 4], 0x4c5277
mov dword [esp], eax
mov dword [esp + 0x24], eax
call fcn.0041b7d0
test eax, eax
je 0x41377d
mov ecx, dword [0x509020]
mov dword [esp + 8], eax
xor edx, edx
mov eax, dword [esp + 0x24]
test ecx, ecx
setne dl
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
add edx, 2
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004023f0
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x6c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x6c], 0
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00412a80
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jne 0x4132dc
mov eax, dword [esp + 0x80]
cmp eax, 0x20
je 0x41339d
mov edx, dword [0x509020]
test edx, edx
je 0x4132dc
cmp eax, 0x20000000
je 0x4133aa
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00412a80
mov ebp, dword [esp + 0x7c]
test ebp, ebp
jne 0x413319
mov eax, dword [esp + 0x80]
cmp eax, 0x20
je 0x41334f
mov edi, dword [0x509020]
test edi, edi
je 0x413319
cmp eax, 0x20000000
je 0x413359
mov eax, dword [0x5091e0]
mov dword [esp + 4], str._s:__s:_Not_a_valid_WIN32_resource_file_n
mov dword [esp + 0xc], eax
mov eax, dword [0x50e600]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004ad76c
mov dword [esp], 1
call fcn.004a4de0
mov esi, dword [0x509020]
test esi, esi
jne 0x413319
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
lea edx, [eax + 0x18]
cmp ecx, edx
mov dword [esp + 0x3c], edx
jbe 0x413319
add eax, 0x1b
and eax, 0xfffffffc
mov dword [esp + 0x3c], eax
add eax, 8
cmp ecx, eax
jae 0x413419
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00419310
mov eax, dword [0x5091e4]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x509020]
test eax, eax
jne 0x4132dc
mov eax, dword [esp + 0x6c]
lea edx, [eax + 0x18]
add eax, 0x20
cmp dword [esp + 0x20], eax
mov dword [esp + 0x6c], edx
jbe 0x4132dc
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x7c]
lea edx, [esp + 0x6c]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov ecx, esi
call fcn.00412a80
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
lea eax, [eax + edx - 8]
cmp esi, eax
jae 0x4132dc
mov edx, dword [0x509020]
xor eax, eax
test edx, edx
sete al
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.00402370
jmp 0x4132dc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x40]
lea edx, [esp + 0x3c]
lea edi, [esp + 0x70]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov ecx, esi
call fcn.00412a80
lea eax, [esp + 0x54]
lea edx, [esp + 0x3c]
mov ecx, esi
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00412b10
lea eax, [esp + 0x60]
lea edx, [esp + 0x3c]
mov ecx, esi
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00412b10
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
mov ecx, esi
mov dword [esp + 4], 0x10
mov dword [esp + 0x20], esi
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
lea eax, [esp + 0x48]
call fcn.00412a20
lea eax, [esp + 0x6c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.004027d0
mov dword [esp + 4], edi
lea edi, [esp + 0x48]
mov dword [esp + 8], 2
mov dword [esp + 0x28], eax
mov dword [esp], edi
lea edi, [esp + 0x72]
call fcn.00402750
mov dword [esp + 4], edi
lea edi, [esp + 0x48]
mov dword [esp + 8], 2
mov ebx, eax
mov dword [esp], edi
lea edi, [esp + 0x78]
call fcn.00402750
mov dword [esp + 4], edi
lea edi, [esp + 0x48]
mov dword [esp + 8], 4
mov esi, eax
mov dword [esp], edi
call fcn.004027d0
mov edi, dword [esp + 0x3c]
mov ebp, eax
lea eax, [edi + 3]
and eax, 0xfffffffc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.00401a90
mov edi, eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
mov dword [esp], edi
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
call fcn.00412a20
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], edi
mov dword [esp], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
call fcn.0040aa90
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebp
mov edi, eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x18], ebx
mov ecx, 0x5091e4
mov dword [esp + 0x28], edi
lea ebx, [esp + 0x7c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x54]
mov edi, ecx
mov dword [esp + 0x98], esi
mov ebp, dword [edi]
xor esi, esi
and byte [esp + 0x94], 0xfe
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
test ebp, ebp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x90], eax
je 0x41366d
mov eax, dword [ebp + 0x10]
add ebp, 0x10
test eax, eax
jne 0x413611
jmp 0x4136a0
mov ebp, dword [ebp]
mov eax, dword [ebp]
test eax, eax
je 0x4136a0
mov edx, dword [ebx]
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
mov dword [esp], edx
mov edx, dword [eax + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
call fcn.00401ce0
test eax, eax
jne 0x413603
mov edi, dword [ebp]
test edi, edi
je 0x4136a0
lea edx, [esi + 1]
cmp edx, 3
je 0x4136e1
add ebx, 0xc
test byte [edi + 0x10], 1
je 0x4137ee
add edi, 0x14
mov ebp, dword [edi]
mov esi, edx
test ebp, ebp
jne 0x4135f4
mov dword [esp], 0x14
call fcn.00401a90
lea ebp, [eax + 0x10]
mov dword [edi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esp], 0x18
call fcn.00401a90
mov edx, dword [ebx]
cmp esi, 2
mov edi, eax
mov dword [eax], 0
mov dword [eax + 4], edx
mov edx, dword [ebx + 4]
mov dword [eax + 8], edx
mov edx, dword [ebx + 8]
mov dword [eax + 0xc], edx
je 0x4137de
or byte [eax + 0x10], 1
mov dword [eax + 0x14], 0
mov dword [ebp], edi
jmp 0x413649
mov ecx, edi
mov edi, dword [esp + 0x28]
test byte [ecx + 0x10], 1
jne 0x413789
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x413745
mov esi, dword [esp + 0x2c]
mov eax, dword [0x50e600]
mov dword [esp + 4], str._s:_warning:
mov dword [esp + 0x28], ecx
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.004ad76c
lea eax, [esp + 0x7c]
mov dword [esp + 4], 3
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00401e10
mov dword [esp + 4], str.:_duplicate_value_n
mov dword [esp], esi
call fcn.004ad76c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x14], edi
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x3c], eax
add eax, 8
cmp dword [esp + 0x20], eax
jb 0x413381
jmp 0x413425
mov eax, dword [0x5091e0]
mov dword [esp], str.cant_open__s_for_input.
mov dword [esp + 4], eax
call fcn.00413de0
mov dword [esp], str.bfd_get_section_by_name
call fcn.00413d30
mov eax, dword [0x50e600]
mov dword [esp + 4], 0x4c52c1
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [eax + 0x40]
mov dword [esp], ebx
call fcn.004ad76c
lea eax, [esp + 0x7c]
mov dword [esp + 4], 3
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00401e10
mov dword [esp + 4], str.:_expected_to_be_a_leaf_n
mov dword [esp], ebx
call fcn.004ad76c
mov dword [esp], 1
call fcn.004a4de0
and byte [eax + 0x10], 0xfe
mov dword [eax + 0x14], 0
jmp 0x4136d9
mov eax, dword [0x50e600]
mov dword [esp + 4], 0x4c52c1
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [eax + 0x40]
mov dword [esp], ebx
call fcn.004ad76c
lea eax, [esp + 0x7c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00401e10
mov dword [esp + 4], str.:_expected_to_be_a_directory_n
mov dword [esp], ebx
call fcn.004ad76c
mov dword [esp], 1
call fcn.004a4de0
nop