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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x10158df0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
sub esp, 0x1c
mov dword [esp + 0x34], esp
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xe0], eax
mov eax, esp
push 0x1012c9e4
push str.1937
push str.__line:
sub esp, 0x1c
mov dword [esp + 0xc0], ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
xor ebx, ebx
push 0xd
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov dword [esp + 0x6c], edx
mov byte [ecx + 4], bl
mov dword [esp + 0x58], eax
call fcn.10007180
lea esi, [esp + 0x218]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.10007180
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xf4]
push edx
call fcn.1000a390
add esp, 0xc
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.1000a390
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x19
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x10130660
mov byte [ecx + 4], bl
call fcn.10007180
lea ecx, [edi - 0xe]
lea ebx, [esp + 0x228]
call fcn.10055540
cmp dword [esp + 0xe4], 0x10
jb 0x1004a42d
mov eax, dword [esp + 0xd0]
push eax
call fcn.100d4a7a
add esp, 4
xor ebx, ebx
mov esi, 0x10
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x78], esi
jb 0x1004a45c
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x5c], esi
jb 0x1004a47b
mov edx, dword [esp + 0x48]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x3c], esi
jb 0x1004a49a
mov eax, dword [esp + 0x28]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x1ec], esi
jb 0x1004a4bf
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.100d4a7a
add esp, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], edx
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0xe8], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1004a503
push eax
call fcn.10073c20
add esp, 4
cmp dword [esp + 0xe8], ebx
je 0x1004a79b
lea edx, [ebp + 0x18]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], 0x10040250
mov dword [esp + 0xf4], 0x10040260
push 0x1012c9e4
push str.1939
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0x1fc]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10007180
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0xac]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.1000a390
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.1000a390
add esp, 0xc
push str.bCheckScatter:__d
lea edx, [esp + 0x118]
push edx
mov dword [esp + 0x18], eax
call fcn.10009e40
lea ecx, [esp + 0xec]
push ecx
call fcn.10011e90
add esp, 4
mov dword [esp + 0x14], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0xe8]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1000a530
mov esi, dword [eax + 4]
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x44]
add esi, 4
call fcn.10009f40
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x1004a63b
mov eax, dword [eax + 4]
jmp 0x1004a63e
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.100087d0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x1004a65b
mov edx, eax
mov eax, dword [edx + 4]
jmp 0x1004a662
mov eax, dword [esp + 0x10]
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x5c], 0x10
jb 0x1004a68b
mov eax, dword [esp + 0x48]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
lea edi, [esp + 0x114]
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.10003aa0
mov esi, 0x10
cmp dword [esp + 0x78], esi
jb 0x1004a6bb
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d4a7a
add esp, 4
mov edi, 0xf
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xe4], esi
jb 0x1004a6e5
mov edx, dword [esp + 0xd0]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0xb4], esi
jb 0x1004a713
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x98], esi
jb 0x1004a741
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x3c], esi
jb 0x1004a769
mov edx, dword [esp + 0x28]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x1ec], esi
jb 0x1004a78e
mov eax, dword [esp + 0x1d8]
push eax
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0xe8], ebx
jne 0x1004a530
cmp dword [ebp + 0x18], ebx
je 0x1004aee1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], ecx
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call fcn.1000a460
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1004a7e5
push eax
call fcn.10073c20
add esp, 4
cmp dword [esp + 0x40], ebx
je 0x1004a9ce
nop
push 0x1012c9e4
push str.1943
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0x1fc]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10007180
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0x54]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.1000a390
add esp, 0xc
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.1000a390
add esp, 0xc
mov dword [esp + 0x10], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
push 0x19
add esi, 4
push str.have_load_scatter_already
mov ecx, esi
call fcn.100087d0
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x1004a8d4
mov ecx, dword [ecx + 4]
jmp 0x1004a8d7
add ecx, 4
push eax
push ecx
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004a906
mov edx, dword [esp + 0x84]
push edx
call fcn.100d4a7a
add esp, 4
mov esi, 0x10
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x1004a939
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004a961
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004a980
mov edx, dword [esp + 0x64]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x3c], esi
jb 0x1004a99f
mov eax, dword [esp + 0x28]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x1ec], esi
jb 0x1004a9c4
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0x40], ebx
jne 0x1004a7f0
cmp dword [0x1015e880], 1
jne 0x1004ac7a
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edx
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1004aa1c
push eax
call fcn.10073c20
add esp, 4
cmp dword [esp + 0xc], ebx
je 0x1004ac0e
jmp 0x1004aa30
push 0x1012c9e4
push str.1946
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0x1fc]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10007180
push esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.1000a390
add esp, 0xc
mov dword [esp + 0x10], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
push 0xc
add esi, 4
push str.libversion_1
mov ecx, esi
call fcn.100087d0
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x1004ab14
mov ecx, dword [ecx + 4]
jmp 0x1004ab17
add ecx, 4
push eax
push ecx
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004ab46
mov edx, dword [esp + 0x84]
push edx
call fcn.100d4a7a
add esp, 4
mov esi, 0x10
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x1004ab79
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004aba1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004abc0
mov edx, dword [esp + 0x64]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x3c], esi
jb 0x1004abdf
mov eax, dword [esp + 0x28]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x1ec], esi
jb 0x1004ac04
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0xc], ebx
jne 0x1004aa30
mov eax, dword [0x1015e9ec]
cmp eax, ebx
je 0x1004ac51
push 0x10130660
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1004ac51
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0xd4]
push ecx
push edx
call eax
mov esi, eax
jmp 0x1004b8a8
lea ecx, [esp + 0x1f0]
push ecx
call fcn.100557e0
mov eax, 0xc001000c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100d3ba1
mov esp, ebp
pop ebp
ret 0x14
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1004acbb
push eax
call fcn.10073c20
add esp, 4
cmp dword [esp + 0x10], ebx
je 0x1004aeae
jmp 0x1004acd0
push 0x1012c9e4
push str.1960
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0x1fc]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10007180
push esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.1000a390
add esp, 0xc
mov dword [esp + 0xc], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
push 0xc
add esi, 4
push str.libversion_2
mov ecx, esi
call fcn.100087d0
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x1004adb4
mov ecx, dword [ecx + 4]
jmp 0x1004adb7
add ecx, 4
push eax
push ecx
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004ade6
mov edx, dword [esp + 0x84]
push edx
call fcn.100d4a7a
add esp, 4
mov esi, 0x10
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x1004ae19
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004ae41
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004ae60
mov edx, dword [esp + 0x64]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x3c], esi
jb 0x1004ae7f
mov eax, dword [esp + 0x28]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x1ec], esi
jb 0x1004aea4
mov ecx, dword [esp + 0x1d8]
push ecx
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x1004acd0
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x88]
call fcn.10021ff0
lea edx, [esp + 0x1f0]
mov esi, eax
push edx
jmp 0x1004b8b0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1004af22
push eax
call fcn.10073c20
add esp, 4
cmp dword [esp + 0x14], ebx
je 0x1004b10e
lea esp, [esp]
push 0x1012c9e4
push str.1966
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xd
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._api_api.cpp
mov byte [ecx + 4], bl
call fcn.10007180
lea esi, [esp + 0xf4]
call fcn.10040f50
add esp, 0x1c
push 3
push 0x1012ca0c
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10007180
push esi
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.1000a390
add esp, 0xc
mov dword [esp + 0xc], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.1000a530
mov esi, dword [eax + 4]
add esp, 0xc
push 0x14
add esi, 4
push str.Not_load_scatter_yet
mov ecx, esi
call fcn.100087d0
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0x1004b014
mov ecx, dword [ecx + 4]
jmp 0x1004b017
add ecx, 4
push eax
push ecx
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004b046
mov edx, dword [esp + 0x84]
push edx
call fcn.100d4a7a
add esp, 4
mov esi, 0x10
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x1004b079
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004b0a1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004b0c0
mov edx, dword [esp + 0x64]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x3c], esi
jb 0x1004b0df
mov eax, dword [esp + 0x28]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0xe4], esi
jb 0x1004b104
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0x14], ebx
jne 0x1004af30
mov eax, dword [0x1015e9ec]
cmp eax, ebx
je 0x1004ac51
push 0x10130660
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1004b158
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0xd4]
push ecx
push edx
call eax
mov esi, eax
cmp esi, ebx
jne 0x1004b8a8
mov eax, dword [0x1015e9ec]
cmp eax, ebx
je 0x1004ac51
push 0x101306f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1004ac51
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
push ecx
call eax
mov esi, eax
mov eax, dword [0x1015e9ec]
cmp eax, ebx
je 0x1004b19d
push 0x10130630
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x1004b1c6
lea edx, [esp + 0x1f0]
push edx
call fcn.100557e0
mov eax, 0xc001000c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100d3ba1
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi]
push ecx
call eax
push eax
lea ecx, [esp + 0x1d8]
call fcn.10006340
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], edx
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.1000a460
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x10]
mov dword [eax], ebx
call fcn.10002f90
cmp dword [esp + 0x40], ebx
je 0x1004b47c
lea edx, [esp + 0x1d4]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], 0x10040230
mov dword [esp + 0xf4], 0x10040240
nop
push str.chip:__s
lea eax, [esp + 0x118]
push eax
call fcn.10009e40
lea ecx, [esp + 0xec]
push ecx
call fcn.10011e90
add esp, 4
mov esi, eax
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1000a530
mov eax, dword [eax + 4]
add eax, 4
add esp, 0xc
lea edx, [esp + 0x80]
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.10009f40
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x1004b2a7
mov eax, dword [eax + 4]
jmp 0x1004b2aa
add eax, 4
push ecx
mov ecx, dword [esp + 0x10]
push eax
call fcn.100087d0
push 0x1012c9e4
push str.1995
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x44], esp
push str.._api_api.cpp
call fcn.10006340
lea esi, [esp + 0x124]
call fcn.10040f50
add esp, 0x20
push eax
push 0x1012ca0c
lea ecx, [esp + 0x38]
call fcn.10006340
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0x70]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1000a390
add esp, 0xc
push eax
lea ecx, [esp + 0xa4]
push ecx
call fcn.1000a390
mov ecx, dword [eax + 0x14]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x1004b341
mov eax, dword [eax + 4]
jmp 0x1004b344
add eax, 4
push ecx
mov ecx, dword [esp + 0x10]
push eax
call fcn.100087d0
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004b375
mov edx, dword [esp + 0x84]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x98], edi
lea edi, [esp + 0x114]
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.10003aa0
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x1004b3b4
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d4a7a
add esp, 4
mov edi, 0xf
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004b3e1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004b400
mov edx, dword [esp + 0x64]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xe4], esi
jb 0x1004b425
mov eax, dword [esp + 0xd0]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x3c], esi
jb 0x1004b44d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x110], esi
jb 0x1004b472
mov edx, dword [esp + 0xfc]
push edx
call fcn.100d4a7a
add esp, 4
cmp dword [esp + 0x40], ebx
jne 0x1004b240
lea ecx, [esp + 0x40]
call fcn.10002f90
sub esp, 0x1c
lea eax, [esp + 0x1f0]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.10006380
call fcn.1004a1e0
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ecx
test al, al
je 0x1004b6e7
mov eax, 1
mov dword [0x1015e880], eax
mov dword [esp + 0x1c], eax
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x80]
push ecx
mov esi, eax
call fcn.1000a460
mov edx, dword [eax]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x7c]
mov dword [eax], ebx
call fcn.10002f90
cmp dword [esp + 0x20], ebx
je 0x1004b6ac
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.1000a530
mov eax, dword [eax + 4]
add esp, 0xc
push 0x1012c9e4
push str.2000
push str.__line:
sub esp, 0x20
add eax, 4
mov ecx, esp
mov dword [esp + 0x44], esp
push str.._api_api.cpp
mov dword [esp + 0x4c], eax
call fcn.10006340
lea esi, [esp + 0x124]
call fcn.10040f50
add esp, 0x20
push eax
push 0x1012ca0c
lea ecx, [esp + 0xe0]
call fcn.10006340
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.1000a390
mov ecx, dword [esp + 0x28]
add esp, 0xc
push str.used_lib_version:_1
mov dword [esp + 0x20], eax
call fcn.10006de0
mov esi, eax
mov eax, dword [esp + 0x1c]
call fcn.1000a640
lea ecx, [esp + 0xb8]
call fcn.10006d40
cmp dword [esp + 0x98], 0x10
jb 0x1004b5e2
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100d4a7a
add esp, 4
mov esi, 0x10
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], esi
jb 0x1004b615
mov edx, dword [esp + 0xa0]
push edx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x5c], esi
jb 0x1004b63d
mov eax, dword [esp + 0x48]
push eax
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x1004b65c
mov ecx, dword [esp + 0x64]
push ecx
call fcn.100d4a7a
add esp, 4
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0xe4], esi
jb 0x1004b681
mov edx, dword [esp + 0xd0]
push edx
call fcn.100d4a7a
add esp, 4
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.100063b0
cmp dword [esp + 0x20], ebx
jne 0x1004b4f7
lea ecx, [esp + 0x20]
call fcn.10002f90
lea ecx, [esp + 0x1d4]
call fcn.100063b0
lea eax, [esp + 0x1f0]
push eax
call fcn.100557e0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.100d3ba1
mov esp, ebp
pop ebp
ret 0x14
mov dword [0x1015e880], 2
mov dword [esp + 0x1c], 1
call fcn.1005c4f0
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.1000a460
mov edx, dword [eax]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x18]
mov dword [eax], ebx
call fcn.10002f90
cmp dword [esp + 0x10], ebx
je 0x1004b847
lea esp, [esp]
call fcn.1005c4f0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.1000a530
mov edi, dword [eax + 4]
add esp, 0xc
push 0x1012c9e4
push str.2006
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x44], esp
push str.._api_api.cpp
add edi, 4
call fcn.10006340
lea esi, [esp + 0xf8]
call fcn.10040f50
add esp, 0x20
push eax
push 0x1012ca0c
lea ecx, [esp + 0x74]
call fcn.10006340
push eax
lea eax, [esp + 0x58]
push eax
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0x100]
push eax
call fcn.1000a390
add esp, 0xc
push str.used_lib_version:_2
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.10006de0
mov esi, eax
mov eax, dword [esp + 0x18]
call fcn.1000a640
lea ecx, [esp + 0xb8]
call fcn.10006d40
lea ecx, [esp + 0xf8]
call fcn.100063b0
lea ecx, [esp + 0x80]
call fcn.100063b0
lea ecx, [esp + 0x9c]
call fcn.100063b0
lea ecx, [esp + 0x44]
call fcn.100063b0
lea ecx, [esp + 0x60]
call fcn.100063b0
lea ecx, [esp + 0xcc]
call fcn.100063b0
cmp dword [esp + 0x10], ebx
jne 0x1004b730
lea ecx, [esp + 0x10]
call fcn.10002f90
mov edi, dword [esp + 0x20]
mov ecx, dword [edi]
push ecx
call sym.Flashtoollib.dll_FlashTool_CloseComport
mov esi, eax
cmp esi, ebx
je 0x1004b878
lea ecx, [esp + 0x1d4]
call fcn.100063b0
lea edx, [esp + 0x1f0]
push edx
jmp 0x1004b8b0
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
push eax
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, edi
call fcn.10021ff0
lea ecx, [esp + 0x1d4]
mov esi, eax
call fcn.100063b0
lea eax, [esp + 0x1f0]
push eax
call fcn.100557e0
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100d3ba1
mov esp, ebp
pop ebp
ret 0x14