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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x10525930]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
sub esp, 0x20
mov dword [esp + 0x30], esp
mov ebx, esp
push 0x104c2ef4
push ecx
push 0x104d8c08
push ecx
push str.__line:
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x68], esp
push str.._interface_undocument_api.cpp
call fcn.10003680
lea esi, [esp + 0xa4]
call fcn.100af830
add esp, 0x20
push eax
push 0x104c3ebc
lea ecx, [esp + 0xac]
call fcn.10003680
push eax
lea eax, [esp + 0xec]
push eax
call fcn.10016ef0
add esp, 0x10
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.10016fa0
add esp, 0x10
push eax
lea edx, [esp + 0x54]
push edx
call fcn.10016fa0
add esp, 0x10
push eax
push ebx
call fcn.10016fa0
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x50], esp
push str.flashtool_set_scatter_path
call fcn.10003680
mov ecx, 1
lea edx, [esp + 0x144]
call fcn.10053f40
cmp dword [esp + 0x40], 0x10
jb 0x10111afd
mov eax, dword [esp + 0x2c]
push eax
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10001370
cmp dword [esp + 0xa8], 0x10
jb 0x10111b33
mov ecx, dword [esp + 0x94]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.10001370
cmp dword [esp + 0xc8], 0x10
jb 0x10111b6e
mov edx, dword [esp + 0xb4]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0xac]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.10001370
cmp dword [esp + 0x88], 0x10
jb 0x10111ba6
mov eax, dword [esp + 0x74]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.10001370
cmp dword [esp + 0x68], 0x10
jb 0x10111bd5
mov ecx, dword [esp + 0x54]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.10001370
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.1012ac60
mov esi, eax
call fcn.1012bfc0
mov esi, dword [esp + 0x44]
cmp esi, ebx
jne 0x10112038
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 4
mov dword [esp + 0x14], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10111c4c
push eax
call fcn.1029f770
add esp, 4
cmp dword [esp + 0x20], ebx
je 0x10111fcb
call fcn.1005c450
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x100]
push edx
call fcn.10016de0
mov ecx, dword [eax + 4]
add esp, 0xc
add ecx, 4
push str.invalid_session.
mov ebx, 0x10
call fcn.10013de0
push 0x104c2ef4
push ecx
push 0x104d6150
push ecx
push str.__line:
sub esp, 0x24
mov ecx, esp
mov dword [esp + 0x12c], esp
push str.._interface_undocument_api.cpp
mov edi, eax
call fcn.10003680
lea esi, [esp + 0x5c]
call fcn.100af830
add esp, 0x20
push eax
push 0x104c3ebc
lea ecx, [esp + 0xac]
call fcn.10003680
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.10016ef0
add esp, 0x10
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.10016fa0
add esp, 0x10
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.10016fa0
add esp, 0x10
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.10016fa0
mov ebx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0xc
cmp dword [eax + 0x1c], esi
jb 0x10111d22
mov eax, dword [eax + 8]
jmp 0x10111d25
add eax, 8
push eax
mov ecx, edi
call fcn.10013de0
lea ecx, [esp + 0xf8]
call fcn.100132f0
cmp dword [esp + 0xf0], esi
jb 0x10111d52
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov edi, 0xf
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.10239250
mov eax, dword [esp + 0xd4]
cmp eax, 0xfffffffd
je 0x10111dae
cmp eax, ebx
je 0x10111da7
lea esp, [esp]
mov dword [eax], ebx
mov edx, dword [esp + 0xd4]
mov eax, dword [edx + 4]
mov dword [esp + 0xd4], eax
cmp eax, ebx
jne 0x10111d90
mov dword [esp + 0xd4], ebx
lea ecx, [esp + 0x18]
call fcn.10239290
cmp dword [esp + 0x68], esi
jb 0x10111dca
mov eax, dword [esp + 0x54]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.10239250
mov eax, dword [esp + 0x4c]
cmp eax, 0xfffffffd
je 0x10111e05
cmp eax, ebx
je 0x10111e01
mov edi, edi
mov dword [eax], ebx
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x4c], eax
cmp eax, ebx
jne 0x10111df0
mov dword [esp + 0x4c], ebx
lea ecx, [esp + 0x14]
call fcn.10239290
cmp dword [esp + 0x88], esi
jb 0x10111e24
mov edx, dword [esp + 0x74]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.10239250
mov eax, dword [esp + 0x6c]
cmp eax, 0xfffffffd
je 0x10111e65
cmp eax, ebx
je 0x10111e61
mov edi, edi
mov dword [eax], ebx
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
cmp eax, ebx
jne 0x10111e50
mov dword [esp + 0x6c], ebx
lea ecx, [esp + 0x1c]
call fcn.10239290
cmp dword [esp + 0xc8], esi
jb 0x10111e87
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0xd4]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.10239250
mov eax, dword [esp + 0xac]
cmp eax, 0xfffffffd
je 0x10111ede
cmp eax, ebx
je 0x10111ed7
lea ebx, [ebx]
mov dword [eax], ebx
mov edx, dword [esp + 0xac]
mov eax, dword [edx + 4]
mov dword [esp + 0xac], eax
cmp eax, ebx
jne 0x10111ec0
mov dword [esp + 0xac], ebx
lea ecx, [esp + 0xd0]
call fcn.10239290
cmp dword [esp + 0xa8], esi
jb 0x10111f03
mov eax, dword [esp + 0x94]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0xd0]
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
call fcn.10239250
mov eax, dword [esp + 0x8c]
cmp eax, 0xfffffffd
je 0x10111f5e
cmp eax, ebx
je 0x10111f57
jmp 0x10111f40
mov dword [eax], ebx
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
cmp eax, ebx
jne 0x10111f40
mov dword [esp + 0x8c], ebx
lea ecx, [esp + 0xcc]
call fcn.10239290
cmp dword [esp + 0x40], esi
jb 0x10111f7d
mov edx, dword [esp + 0x2c]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.10239250
mov eax, dword [esp + 0x24]
cmp eax, 0xfffffffd
je 0x10111fb6
cmp eax, ebx
je 0x10111fb2
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x10111fa1
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x10]
call fcn.10239290
cmp dword [esp + 0x20], ebx
jne 0x10111c56
xor ebx, ebx
mov ecx, dword [esp + 0x44]
push ebx
push 0x104c2ed8
add ecx, 0x50
call fcn.10004fa0
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x1011200f
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1011200f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1011200f
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0x104]
push ecx
call fcn.100542c0
mov eax, 0xc001000a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.102595a0
mov esp, ebp
pop ebp
ret 8
push edi
lea ecx, [esp + 0x28]
call fcn.10003680
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x50]
call fcn.10003d90
cmp dword [esp + 0x40], 0x10
jb 0x10112062
mov edx, dword [esp + 0x2c]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10001370
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x101120ad
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x101120ad
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x101120ad
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea eax, [esp + 0x104]
push eax
call fcn.100542c0
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.102595a0
mov esp, ebp
pop ebp
ret 8