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

Disassembly:
jmp 0x5085d0
sub esp, 0xc4
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc8]
push ebx
push esi
mov esi, dword [esp + 0xe8]
mov ebx, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xd4]
push edi
mov dword [esp + 0x1c], esi
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x50]
mov dword [ebx + 0x24], edx
push eax
mov dword [esp + 0x18], 0
call fcn.00412f35
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov cl, byte [eax + 8]
mov byte [ebx + 0x1c], cl
mov eax, dword [esp + 0xc]
mov byte [esp + 0x16], cl
test eax, eax
je 0x50892e
lea ecx, [esp + 0x84]
mov dword [esp + 0xc], 0
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 2
mov dword [ecx], eax
call fcn.0040fce0
mov ecx, dword [esp + 0x84]
add esp, 8
mov esi, dword [esp + 0x78]
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], 0
lea eax, [ecx + ecx*2]
mov dword [esp + 0x5c], 0xf
lea edi, [esi + eax*8]
cmp esi, edi
je 0x508746
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov eax, esi
sar edx, 2
mov ecx, edx
dec edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 0x10]
add eax, 0x18
add ecx, edx
cmp eax, edi
jne 0x5086d8
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040e09d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x5086f5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [esp + 0x4c]
push eax
call fcn.004070e5
add esi, 0x18
cmp esi, edi
je 0x50873e
nop dword [eax]
push 1
push 0x92406c
lea ecx, [esp + 0x50]
call fcn.004070e5
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x50872a
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [esp + 0x4c]
push eax
call fcn.004070e5
add esi, 0x18
cmp esi, edi
jne 0x508710
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
movups xmm0, xmmword [esp + 0x48]
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*8]
movups xmmword [esp + 0xb4], xmm0
push eax
movq xmm0, qword [esp + 0x5c]
push esi
movq qword [esp + 0xcc], xmm0
call fcn.0040c8b5
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x8c]
add esp, 8
cmp eax, ecx
je 0x50878e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [esp + 0xc8], 0x10
lea edi, [esp + 0xb4]
mov esi, dword [ebx + 0x28]
cmovae edi, dword [esp + 0xb4]
call fcn.00415dfc
push 0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x2c]
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x50], 0x16
push 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x924694
mov dword [esp + 0x50], eax
call fcn.0040826f
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x80], str.parsing__s_table_at_offset_0x_llx:__s
mov dword [esp + 0x7c], 0x9313dc
mov dword [esp + 0x84], edi
mov dword [esp + 0x94], esi
call fcn.0040c69e
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x2c]
je 0x508876
lea ecx, [esp + 0x28]
call fcn.004067b2
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x48]
push esi
call fcn.00408deb
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0040934a
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x5088cd
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5088c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5088c3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov edx, dword [esp + 0xc8]
cmp edx, 0x10
jb 0x50890b
mov ecx, dword [esp + 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508901
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x508901
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0xf
mov byte [esp + 0xb4], 0
jmp 0x508d76
movzx eax, cl
sub eax, 0
je 0x508940
add esi, 0xc
mov eax, 0x14
jmp 0x508948
add esi, 4
mov eax, 0xc
adc edi, 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
test edi, edi
ja 0x50899c
jb 0x50895d
cmp esi, eax
jae 0x50899c
mov eax, dword [ebx + 0x28]
lea ecx, [ebx + 0x20]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x50]
push eax
push str._s_table_at_offset_0x_llx_has_too_small_length__0x_llx__to_contain_a_complete_header
sub esp, 8
mov esi, esp
call fcn.00415dfc
mov dword [esi], 0x16
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
push esi
call fcn.0040edf9
add esp, 0x1c
jmp 0x508d76
mov edx, dword [ebx + 0x20]
lea ecx, [ebx + 0x20]
add esi, edx
adc edi, dword [ecx + 4]
cmp edi, dword [ecx + 4]
jb 0x508df4
ja 0x5089ba
cmp esi, edx
jb 0x508df4
mov edx, esi
mov dword [esp + 0x48], 0
add edx, 0xffffffff
mov eax, edi
adc eax, 0xffffffff
cmp dword [esp + 0x48], eax
jb 0x508df4
ja 0x5089e5
cmp dword [esp + 0xdc], edx
jbe 0x508df4
push 0
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
call fcn.004023a6
push 0
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
mov word [ebx + 8], ax
call fcn.00406465
push 0
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
mov byte [ebx + 0xa], al
call fcn.00406465
push 0
push dword [esp + 0x20]
lea ecx, [esp + 0xe0]
mov byte [ebx + 0xb], al
call fcn.00413f75
cmp word [ebx + 8], 5
mov dword [esp + 0x20], eax
mov dword [ebx + 0xc], eax
je 0x508b78
mov esi, dword [ebx + 0x28]
call fcn.00415dfc
push 0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x2c]
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x50], 0x16
push 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x924694
mov dword [esp + 0x50], eax
call fcn.0040826f
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x80], eax
mov ax, word [ebx + 8]
mov word [esp + 0x88], ax
lea eax, [esp + 0x78]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x80], str.unrecognised__s_table_version__hu_in_table_at_offset_0x_llx
mov dword [esp + 0x7c], 0x9313f4
mov dword [esp + 0x94], esi
call fcn.0040c69e
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x2c]
je 0x508b1f
lea ecx, [esp + 0x28]
call fcn.004067b2
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x48]
push esi
call fcn.00408deb
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0040934a
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x508d76
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508d6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x508d6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov al, byte [ebx + 0xa]
lea ecx, [ebx + 0xa]
mov byte [esp + 0x17], al
cmp al, 4
je 0x508ba2
cmp al, 8
je 0x508ba2
mov eax, dword [ebx + 0x28]
push ecx
lea ecx, [ebx + 0x20]
mov dword [esp + 0x4c], eax
push ecx
lea eax, [esp + 0x50]
push eax
push str._s_table_at_offset_0x_llx_has_unsupported_address_size__hhu
jmp 0x508bc1
cmp byte [ebx + 0xb], 0
lea ecx, [ebx + 0xb]
je 0x508be6
mov eax, dword [ebx + 0x28]
push ecx
lea ecx, [ebx + 0x20]
mov dword [esp + 0x4c], eax
push ecx
lea eax, [esp + 0x50]
push eax
push str._s_table_at_offset_0x_llx_has_unsupported_segment_selector_size__hhu
sub esp, 8
mov esi, esp
call fcn.00415dfc
mov dword [esi], 0x81
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
push esi
call fcn.004130ac
add esp, 0x1c
jmp 0x508d76
movzx eax, byte [ebx + 0x1c]
mov dword [esp + 0x18], 0x14
sub eax, 0
jne 0x508bff
mov dword [esp + 0x18], 0xc
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp byte [esp + 0x16], 1
sete dl
xor eax, eax
lea edx, [edx*4 + 4]
imul ecx, edx
mov dword [esp + 0x48], edx
add ecx, dword [esp + 0x18]
mov edx, ecx
mov dword [esp + 0x18], ecx
adc eax, eax
add edx, dword [ebx + 0x20]
mov dword [esp + 0x18], edx
adc eax, dword [ebx + 0x24]
mov edx, dword [esp + 0x48]
cmp edi, eax
ja 0x508d8d
jb 0x508c4b
cmp esi, dword [esp + 0x18]
jae 0x508d8d
mov esi, dword [ebx + 0x28]
call fcn.00415dfc
push 0
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x2c]
push 0
lea eax, [esp + 0x68]
mov dword [esp + 0x50], 0x16
push 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x924694
mov dword [esp + 0x50], eax
call fcn.0040826f
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x80], str._s_table_at_offset_0x_llx_has_more_offset_entries___u__than_there_is_space_for
mov dword [esp + 0x7c], 0x93140c
mov dword [esp + 0x94], esi
call fcn.0040c69e
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x2c]
je 0x508d1f
lea ecx, [esp + 0x28]
call fcn.004067b2
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x48]
push esi
call fcn.00408deb
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0040934a
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x508d76
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x508d6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x508d6c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x508e39
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x508e39
mov al, byte [esp + 0x17]
xor edi, edi
mov byte [esp + 0xe1], al
cmp dword [esp + 0x20], edi
jbe 0x508de8
push 0
push 0
push dword [esp + 0x24]
lea ecx, [esp + 0xe4]
push edx
call fcn.0041562c
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp ecx, dword [ebx + 0x18]
je 0x508dd0
mov dword [ecx], eax
mov dword [ecx + 4], edx
add dword [ebx + 0x14], 8
jmp 0x508dde
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [ebx + 0x10]
call fcn.00409cbe
mov edx, dword [esp + 0x48]
inc edi
cmp edi, dword [ebx + 0xc]
jb 0x508da0
mov esi, dword [esp + 0x10]
mov dword [esi], 0
jmp 0x508d76
mov eax, dword [ebx + 0x28]
push ecx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push eax
push str.section_is_not_large_enough_to_contain_a__s_table_of_length_0x_llx_at_offset_0x_llx
sub esp, 8
mov esi, esp
call fcn.00415dfc
mov dword [esi], 0x16
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
push esi
call fcn.0040edf9
mov ecx, dword [esp + 0x28]
add esp, 0x1c
test ecx, ecx
je 0x508e39
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0xc4
ret 0x1c