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

Disassembly:
jmp 0x473e60
sub esp, 0x10c
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x108], eax
mov edx, dword [esp + 0x110]
mov eax, ecx
mov ecx, dword [esp + 0x114]
push ebx
mov dword [esp + 0x34], ecx
mov ebx, edx
xor ecx, ecx
mov dword [esp + 4], eax
cmp dword [edx + 0x10], 4
push ebp
cmovne ebx, ecx
mov dword [esp + 0x54], ebx
push esi
push edi
test ebx, ebx
jne 0x473ec6
lea ecx, [esp + 0x24]
mov word [esp + 0x2c], 0x103
push ecx
mov ecx, dword [eax]
push edx
mov dword [esp + 0x2c], str.expected_mapping_node
call fcn.004137af
xor al, al
jmp 0x474a5e
lea eax, [esp + 0x118]
mov word [esp + 0xe4], cx
mov dword [esp + 0x48], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
mov word [esp + 0xf4], cx
mov word [esp + 0x100], cx
mov word [esp + 0x10c], cx
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0xd8], str.version
mov dword [esp + 0xdc], 7
mov word [esp + 0xe0], 1
mov dword [esp + 0xe4], str.case_sensitive
mov dword [esp + 0xe8], 0xe
mov dword [esp + 0xf0], str.use_external_names
mov dword [esp + 0xf4], 0x12
mov dword [esp + 0xfc], str.overlay_relative
mov dword [esp + 0x100], 0x10
mov dword [esp + 0x108], str.fallthrough
mov dword [esp + 0x10c], 0xb
mov dword [esp + 0x114], str.roots
mov dword [esp + 0x118], 5
mov word [esp + 0x11c], 1
call fcn.0040b154
xor esi, esi
mov byte [ebx + 0x28], 0
xor ebp, ebp
mov dword [esp + 0x54], esi
xor edi, edi
mov dword [esp + 0x24], ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
call fcn.004137d7
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
je 0x474434
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop dword [eax]
lea eax, [esp + 0xb4]
mov dword [esp + 0xac], 0
mov ecx, ebx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], 0xa
call fcn.004030c1
cmp dword [eax + 0x10], 1
jne 0x474930
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x94]
push ecx
mov ecx, eax
call fcn.0040d490
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
mov ecx, ebx
mov dword [esp + 0x50], ebp
call fcn.004030c1
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00410a05
test al, al
je 0x474875
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410a05
mov edx, dword [esp + 0x58]
test al, al
jne 0x47411c
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
shl eax, 2
cmp eax, ecx
mov eax, dword [esp + 0x20]
jb 0x4740c6
add eax, eax
lea ecx, [esp + 0x14]
push eax
call fcn.0040e9da
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410a05
mov edx, dword [esp + 0x78]
jmp 0x4740fc
mov ecx, eax
shr eax, 3
sub ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x30]
cmp ecx, eax
ja 0x4740fc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
call fcn.0040e9da
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410a05
mov edx, dword [esp + 0x7c]
inc dword [esp + 0x18]
cmp dword [edx], 0xffffffff
je 0x474109
dec dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov word [edx + 8], 0
cmp byte [edx + 9], 0
jne 0x47480a
mov byte [edx + 9], 1
cmp ebp, 5
jne 0x47420c
push ebp
push str.roots
push dword [esp + 0x4c]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x4743db
mov ecx, ebx
call fcn.00404539
mov ebp, eax
cmp dword [ebp + 0x10], 5
jne 0x4744c6
mov ecx, ebp
mov byte [ebp + 0x28], 0
call fcn.0040bff5
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x4743fc
nop word [eax + eax]
push 1
push dword [esp + 0x44]
lea eax, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00409d7c
mov ebx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x30], ebx
test ecx, ecx
je 0x4741b5
mov eax, dword [ecx]
push 1
call dword [eax]
test ebx, ebx
je 0x47447d
cmp edi, esi
je 0x4741cc
mov dword [edi], ebx
add edi, 4
mov dword [esp + 0x28], edi
jmp 0x4741f5
lea eax, [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00409566
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4741e9
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x54], esi
mov ecx, ebp
call fcn.0040bff5
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
jne 0x474180
jmp 0x4743fc
cmp ebp, 7
jne 0x4742eb
push ebp
push str.version
push dword [esp + 0x4c]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x4743db
lea eax, [esp + 0xcc]
mov dword [esp + 0xc4], 0
mov ecx, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], 4
call fcn.00404539
cmp dword [eax + 0x10], 1
jne 0x47472b
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.0040d490
lea ecx, [esp + 0x84]
push ecx
push 0xa
push dword [eax + 4]
push dword [eax]
call fcn.0040116d
add esp, 0x10
test al, al
jne 0x4746a0
mov ecx, dword [esp + 0x84]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x4746a0
cmp edx, dword [esp + 0x88]
jne 0x4746a0
test ecx, ecx
js 0x4745de
jne 0x474553
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xcc]
cmp eax, ecx
je 0x4743fc
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebp
add esp, 4
jmp 0x474402
cmp ebp, 0xe
jne 0x474393
push ebp
push str.case_sensitive
push dword [esp + 0x4c]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x4743db
mov eax, dword [esp + 0x40]
mov ecx, ebx
add eax, 0x4c
push eax
call fcn.00404539
mov ecx, dword [esp + 0x14]
push eax
call fcn.0040a8df
test al, al
jne 0x4743fc
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x47434d
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474690
mov ebx, ebp
cmp ebx, edi
je 0x474373
nop
mov ecx, dword [ebx]
test ecx, ecx
je 0x47436c
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474360
sub esi, ebp
mov eax, ebp
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x474686
mov ebp, dword [ebp - 4]
add esi, 0x23
sub eax, ebp
jmp 0x47467a
cmp ebp, 0x10
jne 0x4743b7
push ebp
push str.overlay_relative
push dword [esp + 0x4c]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x4743db
mov eax, dword [esp + 0x40]
add eax, 0x4d
jmp 0x4743e2
cmp ebp, 0x12
jne 0x4743db
push ebp
push str.use_external_names
push dword [esp + 0x4c]
call fcn.004031ed
add esp, 0xc
test eax, eax
jne 0x4743db
mov eax, dword [esp + 0x40]
add eax, 0x4e
jmp 0x4743e2
mov eax, dword [esp + 0x40]
add eax, 0x4f
push eax
mov ecx, ebx
call fcn.00404539
mov ecx, dword [esp + 0x14]
push eax
call fcn.0040a8df
test al, al
je 0x4747d3
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x47441a
push eax
call ebp
add esp, 4
mov ebx, dword [esp + 0x5c]
mov ecx, ebx
call fcn.004137d7
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
jne 0x473fe0
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx]
call fcn.00414ca9
test al, al
je 0x474998
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x474468
mov ecx, dword [ebx]
test ecx, ecx
je 0x474461
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474455
sub esi, ebp
lea ecx, [esp + 0x24]
sar esi, 2
push esi
push ebp
call fcn.004073a1
jmp 0x474910
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x47449b
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x474533
mov ecx, dword [ebx]
test ecx, ecx
je 0x4744bd
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x4744b1
jmp 0x474533
mov ecx, ebx
mov word [esp + 0x3c], 0x103
mov dword [esp + 0x34], str.expected_array
call fcn.00404539
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x47450b
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x474533
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x47452c
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474520
sub esi, ebp
mov eax, ebp
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x474906
mov ebp, dword [ebp - 4]
add esi, 0x23
sub eax, ebp
jmp 0x4748fa
mov ecx, ebx
mov word [esp + 0x3c], 0x103
mov dword [esp + 0x34], str.version_mismatch__expected_0
call fcn.00404539
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xcc]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x474598
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x4745b0
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474690
mov ebx, ebp
cmp ebx, edi
je 0x474663
mov ecx, dword [ebx]
test ecx, ecx
je 0x4745d2
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x4745c6
jmp 0x474663
mov ecx, ebx
mov word [esp + 0x3c], 0x103
mov dword [esp + 0x34], str.invalid_version_number
call fcn.00404539
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xcc]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x474623
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x47463b
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474690
mov ebx, ebp
cmp ebx, edi
je 0x474663
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x47465c
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474650
sub esi, ebp
mov eax, ebp
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x474686
mov ebp, dword [ebp - 4]
sub eax, ebp
add esi, 0x23
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4747cd
push esi
push ebp
call fcn.004036ca
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00414f7e
xor al, al
jmp 0x474a5e
mov ecx, ebx
mov word [esp + 0x3c], 0x103
mov dword [esp + 0x34], str.expected_integer
call fcn.00404539
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xcc]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x4746e5
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x4746fd
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x4748e3
mov ecx, dword [ebx]
test ecx, ecx
je 0x47471f
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474713
jmp 0x4748e3
lea ecx, [esp + 0x60]
mov word [esp + 0x68], 0x103
push ecx
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], str.expected_string
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xcc]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp eax, ecx
je 0x474769
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x474781
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x4747a6
mov ecx, dword [ebx]
test ecx, ecx
je 0x47479f
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474793
sub esi, ebp
mov eax, ebp
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x474906
mov ebp, dword [ebp - 4]
add esi, 0x23
sub eax, ebp
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x474906
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x4747f1
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004090ca
lea ecx, [esp + 0x14]
call fcn.00414f7e
xor al, al
jmp 0x474a5e
lea eax, [esp + 0x4c]
mov word [esp + 0x74], 0x103
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x6c], 0x924774
mov word [esp + 0x68], 0x105
mov word [esp + 0x8c], 0x103
mov dword [esp + 0x84], str.duplicate_key_
mov dword [esp + 0x34], str.duplicate_key_
mov word [esp + 0x3c], 0x503
mov dword [esp + 0x94], 0x924774
mov word [esp + 0x98], 0x302
jmp 0x474891
mov word [esp + 0xa4], 0x103
lea eax, [esp + 0x9c]
mov dword [esp + 0x9c], str.unknown_key
push eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x4c]
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x4748bf
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push eax
call ebx
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x4748e3
nop dword [eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4748dc
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x4748d0
sub esi, ebp
mov eax, ebp
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x474906
mov ebp, dword [ebp - 4]
sub eax, ebp
add esi, 0x23
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4747cd
push esi
push ebp
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x20]
push 4
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [esp + 0x1c]
call fcn.00415398
add esp, 0xc
xor al, al
jmp 0x474a5e
lea ecx, [esp + 0x6c]
mov word [esp + 0x74], 0x103
push ecx
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], str.expected_string
mov ecx, dword [eax]
call fcn.004137af
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xb4]
cmp eax, ecx
je 0x474968
push eax
call ebp
add esp, 4
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x4747a6
nop word [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x47498c
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474980
jmp 0x4747a6
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
push dword [esp + 0x60]
call fcn.004074f5
test al, al
jne 0x4749e8
test ebp, ebp
je 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x4749d3
nop word [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4749cc
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x4749c0
sub esi, ebp
lea ecx, [esp + 0x24]
sar esi, 2
push esi
push ebp
call fcn.004073a1
jmp 0x474910
mov ebx, ebp
cmp ebx, edi
je 0x474a11
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
push 0
push dword [ebx]
mov ecx, ebp
push esi
call fcn.00412c38
add ebx, 4
cmp ebx, edi
jne 0x4749f6
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x474a43
mov ebx, ebp
cmp ebx, edi
je 0x474a33
nop dword [eax + eax]
mov ecx, dword [ebx]
test ecx, ecx
je 0x474a2c
mov eax, dword [ecx]
push 1
call dword [eax]
add ebx, 4
cmp ebx, edi
jne 0x474a20
sub esi, ebp
lea ecx, [esp + 0x24]
sar esi, 2
push esi
push ebp
call fcn.004073a1
mov eax, dword [esp + 0x20]
push 4
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [esp + 0x1c]
call fcn.00415398
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x10c
ret 8