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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, edx
mov edi, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x30]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 0x38]
push dword [eax + 0x24]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp eax, ebx
jae 0x10016ac3
test eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], edi
jne 0x100167ad
mov esi, ebx
cmp byte [edi + 0x13], 0
sete bl
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x1001671e
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x1001671e
cmp dword [eax + 0x60], 0
mov edi, esi
je 0x10016629
call fcn.10011230
mov esi, eax
test eax, eax
jne 0x1001670a
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 0x30]
lea eax, [edi + 1]
mov esi, dword [ebp - 0x2c]
mov ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [0x101db688]
xor edx, edx
div dword [esi + 0x24]
cmp edi, eax
je 0x10016acf
xor edx, edx
mov dl, bl
mov dword [ebp - 0x30], edx
cmp byte [esi + 0x11], 0
mov ebx, esi
jne 0x10016765
mov edi, ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0x38]
push edi
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x1c], eax
mov edi, dword [ebx + 0x30]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov esi, dword [ebx]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push dword [ebp - 0x30]
push eax
push edi
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x10016adc
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], edi
je 0x100166c3
mov edx, dword [ecx + 4]
mov dword [eax + 0x38], edx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x34], ebx
mov dword [eax + 4], edi
xor ecx, ecx
cmp edi, 1
mov edx, 0x64
cmovne edx, ecx
mov byte [eax + 9], dl
mov esi, dword [ebp - 0x24]
mov dword [esi], eax
mov ecx, dword [eax + 0x48]
cmp word [ecx + 0x1e], 2
jge 0x10016aec
mov byte [eax], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x10016741
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x10016741
cmp dword [eax + 0x60], 0
je 0x10016e9d
call fcn.10011230
mov edi, eax
xor esi, esi
test eax, eax
jne 0x10016b1f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x1001670a
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10016b40
call fcn.10011a30
jmp 0x10016619
mov edi, dword [eax + 0x28]
test edi, edi
jne 0x10016b2b
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10016b4a
call fcn.10011a30
jmp 0x100166fe
mov dword [ebp - 0x18], eax
mov edi, ecx
cmp ecx, 2
jb 0x10016b54
mov eax, 0xcccccccd
mul dword [ebx + 0x28]
mov esi, edx
shr esi, 2
inc esi
lea ebx, [edi - 2]
mov eax, ebx
xor edx, edx
div esi
sub ebx, edx
lea eax, [ebx + 1]
xor edx, edx
cmp eax, dword [ebp - 0x18]
sete dl
lea eax, [edx + ebx]
add eax, 2
cmp eax, edi
je 0x10016992
mov ebx, dword [ebp - 0x2c]
jmp 0x1001665b
mov cl, byte [ebp + 0x10]
cmp cl, 2
mov dword [ebp - 0x3c], eax
je 0x10016cbf
cmp cl, 1
je 0x10016cc9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x10016a5c
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x10016a5c
cmp dword [eax + 0x60], 0
je 0x10016800
call fcn.10011230
mov esi, eax
test eax, eax
jne 0x1001670a
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x3c]
dec eax
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x38]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x24], eax
xor ecx, ecx
mov dword [ebp - 0x48], 0
mov edi, dword [ebp - 0x24]
test ecx, ecx
mov dword [ebp - 0x28], ecx
jne 0x10016ce2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x38]
add eax, 0x20
push dword [eax]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x3c]
ja 0x10016b5b
cmp ebx, dword [ebp - 0x40]
ja 0x10016b5b
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x10016cea
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 8]
cmp dword [ecx + 4], ebx
mov dword [ebp - 0x20], ebx
je 0x10016aaa
mov eax, dword [esi + 4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x48], esi
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x34], eax
mov dword [ecx + 4], ebx
cmp ebx, 1
mov eax, 0
mov edx, 0x64
cmove eax, edx
mov byte [ecx + 9], al
lea eax, [ecx + 0x48]
mov dword [ebp - 0x44], eax
mov ebx, esi
cmp word [esi + 0x1e], 2
jge 0x10016cf1
mov byte [ecx], 0
mov dword [ebp - 0x1c], ecx
mov esi, dword [ecx + 0x38]
push dword [esi + 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp byte [ebp - 0x18], 0
jne 0x10016b86
test eax, eax
jne 0x10016b86
mov eax, dword [ebx + 0x14]
test byte [ebx + 0x1c], 4
je 0x10016969
mov edx, ebx
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebx + 0x18]
jb 0x10016969
cmp dword [eax + 0x60], 0
mov edx, dword [ebp - 0x1c]
je 0x10016920
mov ecx, ebx
call fcn.10011230
mov esi, eax
test eax, eax
mov edx, dword [ebp - 0x1c]
jne 0x10016ea9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x38]
mov ecx, dword [edx + 0x38]
mov ecx, dword [ecx]
mov dword [eax + 0x20], ecx
mov dword [edi], edx
xor edx, edx
mov dword [ebp - 0x18], 0
xor esi, esi
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10016e79
inc dword [ebp - 0x48]
xor eax, eax
mov ecx, edx
cmp byte [ebp - 0x18], 0
mov bl, 1
mov dword [ebp - 0x18], ebx
je 0x10017009
jmp 0x10016825
mov esi, dword [eax + 0x28]
test esi, esi
mov edx, dword [ebp - 0x1c]
jne 0x10016ea9
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
ja 0x10016eb1
mov ecx, ebx
call fcn.10011a30
jmp 0x10016913
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebx]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push dword [ebp - 0x30]
push eax
push edi
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x10016dd0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
cmp dword [eax + 4], edi
je 0x10016ab8
mov edx, dword [ecx + 4]
mov dword [eax + 0x38], edx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x34], ebx
mov dword [eax + 4], edi
xor edx, edx
cmp edi, 1
mov ebx, 0x64
cmovne ebx, edx
mov byte [eax + 9], bl
lea edi, [eax + 0x48]
cmp word [ecx + 0x1e], 2
jge 0x10016dd7
mov byte [eax], 0
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x10016a87
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x10016a87
cmp dword [eax + 0x60], 0
je 0x10016a83
call fcn.10011230
mov esi, eax
mov ecx, dword [edi]
test byte [ecx + 0x1c], 0x20
jne 0x10016de1
call fcn.1001c870
test esi, esi
jne 0x1001670a
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x30]
lea edi, [ecx + 1]
mov dword [ebx + 0x30], edi
mov eax, dword [0x101db688]
xor edx, edx
div dword [ebx + 0x24]
cmp ecx, eax
jne 0x1001665b
add ecx, 2
mov dword [ebx + 0x30], ecx
jmp 0x10016659
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x1001670a
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10016ebd
call fcn.10011a30
jmp 0x100167f6
xor esi, esi
jmp 0x10016a1a
mov esi, dword [eax + 0x28]
test esi, esi
jne 0x10016a1a
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x100170b4
call fcn.10011a30
jmp 0x10016a18
lea eax, [ecx + 0x48]
mov dword [ebp - 0x44], eax
mov esi, dword [ecx + 0x48]
jmp 0x100168bd
lea edi, [eax + 0x48]
mov ecx, dword [eax + 0x48]
jmp 0x100169ea
push 0x101c47ed
push 0x1170b
jmp 0x10016b01
add edi, 2
mov dword [esi + 0x30], edi
mov ecx, edi
jmp 0x10016646
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
jmp 0x1001670a
call fcn.1014e440
mov dword [esi], 0
push 0x101c47ed
push 0x108a1
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov esi, 0xb
jmp 0x1001670a
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x10016b30
mov ecx, dword [eax + 0x48]
call fcn.1014e440
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov esi, edi
jmp 0x1001670a
call fcn.10151ff0
jmp 0x10016619
call fcn.10151ff0
jmp 0x100166fe
xor eax, eax
jmp 0x1001679d
push 0x101c47ed
push 0x11743
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov esi, 0xb
mov eax, dword [ebp - 0x28]
jmp 0x10017011
mov dword [ebp - 0x38], esi
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x28]
shr edx, 2
add edx, 0xfffffffe
mov ecx, eax
mov dword [ebp - 0x34], eax
cmp eax, edx
ja 0x10016d07
cmp byte [ebp - 0x18], 0
je 0x10016d6f
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
jne 0x10016d5d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ecx + 0x48]
call fcn.1014e2b0
test eax, eax
jne 0x10016ea4
cmp dword [ebp - 0x34], 0
je 0x10016e44
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
push dword [eax + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x40]
ja 0x10016d13
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.1015bc50
add esp, 8
test eax, eax
jne 0x10016d59
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x48]
call fcn.1014e2b0
test eax, eax
jne 0x10016d4d
mov eax, dword [edi + 0x38]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x38]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esi, dword [ebp - 0x34]
lea eax, [esi - 1]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x20], ecx
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x38]
add eax, 8
mov ecx, dword [ebx + 0x38]
add ecx, 0xc
lea edx, [esi*4 - 4]
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [edi + 0x48]
call fcn.1014e440
cmp dword [ebp - 0x28], 0
je 0x10017026
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x48]
call fcn.1014e2b0
test eax, eax
jne 0x10016d59
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0x38]
push dword [ebp - 0x18]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi], eax
xor edx, edx
mov dword [ebp - 0x18], 0
xor esi, esi
mov edi, dword [ebp - 0x24]
jmp 0x10016943
mov al, 1
mov dword [ebp - 0x18], eax
jmp 0x100167cc
mov edi, ebx
cmp ebx, dword [ebp + 0xc]
jae 0x100170ca
mov dword [ebp - 0x18], 0
mov ebx, edi
jmp 0x100167cc
mov eax, dword [ecx + 0x38]
jmp 0x10016839
mov esi, eax
jmp 0x10016b7e
mov ecx, ebx
call fcn.1014e440
push 0x101c47ed
push 0x108a1
jmp 0x10016b65
push 0x101c47ed
push 0x11760
jmp 0x10016d1d
push 0x101c47ed
push 0x11782
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov esi, 0xb
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edi, eax
mov ecx, dword [edx + 0x48]
call fcn.1014e440
mov eax, edi
jmp 0x10017011
mov esi, eax
mov ecx, dword [edi + 0x48]
call fcn.1014e440
jmp 0x10016d36
mov esi, eax
jmp 0x10016d36
cmp byte [ebp + 0x10], 2
jne 0x10016d6f
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0xc]
jb 0x10016bb8
cmp dword [ebp - 0x34], 0
je 0x10016e37
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0xc], 0
je 0x10016f35
cmp byte [ebp + 0x10], 2
jne 0x10016ec7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx*4 + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp eax, dword [ebp + 0xc]
jbe 0x10016f35
mov eax, dword [ebp - 0x20]
inc eax
mov ecx, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x34], eax
jne 0x10016d9b
mov dword [ebp - 0x20], 0
jmp 0x10016f35
mov esi, eax
jmp 0x1001670a
call fcn.1014e440
jmp 0x10016af7
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [edi + 0x98]
mov ebx, edx
sar ebx, 0x1f
imul ebx, eax
mul edx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov edi, dword [edi + 0x3c]
add edx, ebx
mov ebx, edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x18]
push edi
call ecx
add esp, 0x10
jmp 0x10016a2b
xor esi, esi
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jmp 0x10016943
cmp dword [ebp - 0x28], 0
je 0x10016e8c
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x48]
call fcn.1014e2b0
test eax, eax
jne 0x10016ea4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x38]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, edx
xor esi, esi
mov dword [ebp - 0x18], 0
xor edx, edx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0x48]
call fcn.1014e440
mov edx, dword [ebp - 0x1c]
jmp 0x1001694e
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x38]
mov ecx, dword [ecx]
mov dword [eax + 0x20], ecx
xor esi, esi
jmp 0x1001670a
mov esi, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
jmp 0x10016d3c
mov ecx, ebx
call fcn.10151ff0
jmp 0x10016913
call fcn.10151ff0
jmp 0x100167f6
mov eax, dword [ebp - 0x38]
push dword [eax + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp dword [ebp - 0x34], 2
jb 0x10016f35
sub eax, dword [ebp + 0xc]
mov esi, eax
neg esi
cmp eax, 0x80000000
mov edi, bind
cmove esi, edi
test eax, eax
cmovns esi, eax
mov dword [ebp - 0x20], 0
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x38]
push dword [eax + ebx*4 + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
sub eax, dword [ebp + 0xc]
mov ecx, eax
neg ecx
cmp eax, 0x80000000
cmove ecx, edi
test eax, eax
cmovns ecx, eax
cmp ecx, esi
cmovl esi, ecx
mov eax, dword [ebp - 0x20]
cmovl eax, ebx
mov dword [ebp - 0x20], eax
inc ebx
cmp dword [ebp - 0x34], ebx
jne 0x10016efe
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx*4 + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp eax, dword [ebp - 0x40]
ja 0x10016fdc
cmp eax, 1
jbe 0x10016fdc
cmp byte [ebp - 0x18], 0
je 0x10016f84
cmp eax, dword [ebp + 0xc]
je 0x10016f84
xor esi, esi
mov cl, 1
mov dword [ebp - 0x18], ecx
cmp byte [ebp + 0x10], 2
jne 0x10016e39
cmp eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
jae 0x10016943
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call fcn.1014e2b0
test eax, eax
jne 0x10017001
mov eax, dword [ebp - 0x34]
dec eax
cmp dword [ebp - 0x20], eax
jae 0x10016fb1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + ecx*4 + 4]
mov esi, dword [ebp - 0x20]
mov dword [edx + esi*4 + 8], ecx
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1001703f
cmp dword [ecx], esi
jae 0x100170a4
xor ebx, ebx
inc ebx
jmp 0x10017041
push 0x101c47ed
push 0x117c3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov esi, 0xb
jmp 0x10017003
mov esi, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x10016d3c
test eax, eax
je 0x1001670a
mov ecx, dword [eax + 0x48]
call fcn.1014e440
jmp 0x1001670a
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x38]
push dword [ebp - 0x18]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x20], eax
jmp 0x10016cac
xor ebx, ebx
xor ebx, 1
mov ecx, dword [ebp - 0x2c]
mov edx, esi
push ebx
push dword [ebp - 0x24]
call fcn.1015bc50
add esp, 8
xor esi, esi
test eax, eax
je 0x10017069
mov dword [ebp - 0x18], 0
mov esi, eax
jmp 0x10016e39
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
call fcn.1014e2b0
test eax, eax
je 0x100170be
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
je 0x1001708d
mov ecx, dword [eax + 0x48]
call fcn.1014e440
mov edi, dword [ebp - 0x24]
mov dword [edi], 0
mov dword [ebp - 0x18], 0
mov esi, ebx
jmp 0x10016e3c
mov edx, esi
call fcn.10158ab0
xor ebx, ebx
test eax, eax
setne bl
jmp 0x10017041
call fcn.10151ff0
jmp 0x10016a18
mov dword [ebp - 0x18], 0
jmp 0x10016e39
lea ebx, [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
push 0
push ebx
call fcn.1015b520
add esp, 8
mov esi, eax
test eax, eax
sete cl
cmp byte [ebx], 2
sete al
test esi, esi
jne 0x1001670a
mov ebx, edi
and cl, al
mov dword [ebp - 0x18], ecx
jmp 0x100167cc