Function at 0x10016060
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fa58
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x10070020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x4a1], dl
mov byte [ebp - 0x4c2], cl
mov al, byte [ebx + 0xc]
mov edi, dword [ebx + 0x14]
mov byte [ebp - 0x4c1], al
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x4bc], edi
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 4], 1
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0x458]
call fcn.100016d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
mov esi, dword [ebp - 0x448]
cmovae edx, dword [ebp - 0x458]
test esi, esi
je 0x1001613b
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x10016135
cmp ecx, edx
je 0x1001613b
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x10016128
sub ecx, edx
sar ecx, 1
jmp 0x1001613e
or ecx, 0xffffffff
cmp esi, ecx
jb 0x10016da7
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
mov dword [ebp - 0x448], ecx
cmovae eax, dword [ebp - 0x458]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x4d8]
mov byte [eax], dl
cmp byte [ebp - 0x4a1], dl
jne 0x10016c76
call fcn.10015590
test eax, eax
jne 0x10016c76
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 5
mov esi, dword [ebx + 8]
test esi, esi
je 0x10016ddd
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x100161ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x4c8], 0
lea ecx, [ebp - 0x4c8]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
js 0x10016c41
mov esi, dword [ebp - 0x4c8]
test esi, esi
je 0x10016c41
xor edi, edi
mov dword [ebp - 0x4e0], edi
mov dword [ebp - 0x4b8], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 6
test esi, esi
je 0x10016223
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], edi
mov eax, dword [esi]
push ecx
push 0x10045d90
push esi
call dword [eax]
test eax, eax
mov dword [ebp - 0x4b0], eax
cmovns edi, dword [ebp - 0x4ac]
mov dword [ebp - 0x4e0], edi
jmp 0x1001623b
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x4b0], 0x80004002
mov byte [ebp - 4], 5
test esi, esi
je 0x10016249
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x4b0]
test eax, eax
jns 0x1001625e
cmp eax, 0x80004002
jne 0x10016dac
mov byte [ebp - 4], 8
test edi, edi
je 0x10016ddd
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
lea ecx, [ebp - 0x4b8]
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.100026e0
mov byte [ebp - 4], 9
mov ecx, dword [eax]
test ecx, ecx
je 0x10016298
mov ecx, dword [ecx]
jmp 0x1001629a
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x10]
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4b8]
call fcn.10002680
test esi, esi
jns 0x100162bd
mov edx, 0x84
jmp 0x1001630e
cmp byte [ebp - 0x4c1], 0
mov ecx, 0x10045f54
mov eax, 0x10045f48
cmove eax, ecx
lea ecx, [ebp - 0x4b8]
push eax
call fcn.100026e0
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x100162eb
mov ecx, dword [ecx]
jmp 0x100162ed
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x58]
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4b8]
call fcn.10002680
test esi, esi
jns 0x10016332
mov edx, 0x92
push esi
push 0x76
mov ecx, 0x82
call fcn.100159c0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10016c59
push str.Excel_DNA:
lea ecx, [ebp - 0x4a0]
call fcn.10001680
mov byte [ebp - 4], 0xc
lea ecx, [ebx + 0x1c]
cmp dword [ebx + 0x30], 8
push dword [ebx + 0x2c]
cmovae ecx, dword [ebx + 0x1c]
push ecx
mov ecx, eax
call fcn.10001ca0
mov dword [ebp - 0x488], 0
xor ecx, ecx
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x4d4], 2
movups xmmword [ebp - 0x488], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x478], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x4b8]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x488]
cmp dword [ebp - 0x474], 8
cmovae eax, dword [ebp - 0x488]
push eax
call fcn.100026e0
mov byte [ebp - 4], 0xd
mov eax, 2
mov dword [ebp - 0x4d4], eax
and eax, 0xfffffffd
mov dword [ebp - 0x4d4], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x488]
call fcn.10001800
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4a0]
call fcn.10001800
mov esi, dword [ebp - 0x4b8]
test esi, esi
je 0x10016412
mov ecx, dword [esi]
jmp 0x10016414
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x18]
push ecx
lea edx, [ebx + 0x1c]
lea ecx, [ebp - 0x470]
call fcn.10001ef0
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
cmovae ecx, dword [ebp - 0x470]
call fcn.10013da0
test al, al
je 0x10016499
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
lea ecx, [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.100026e0
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
test ecx, ecx
je 0x1001647c
mov ecx, dword [ecx]
jmp 0x1001647e
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x28]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x4a8]
call fcn.10002680
jmp 0x10016703
push str.CONFIG
push str.__MAIN__
push dword [0x1007b040]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4a8], eax
test eax, eax
je 0x10016703
push eax
push dword [0x1007b040]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x4a8]
mov dword [ebp - 0x4b4], eax
push dword [0x1007b040]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x4ac]
call fcn.10013e30
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4ac]
call fcn.10013720
lea eax, [ebp - 0x4d0]
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [ebp - 0x4ac]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4a8], eax
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x4d0]
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x428]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100165a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10016636
movzx eax, ax
or eax, 0x80070000
jmp 0x10016634
cmp eax, 0x100
ja 0x10016692
lea eax, [ebp - 0x220]
push eax
push 0
push 0x10046160
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001658d
xor eax, eax
push eax
push 0x2100
push 2
push eax
push eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x220]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4b0], eax
cmp eax, 0xffffffff
je 0x1001658d
push 0
lea ecx, [ebp - 0x4c0]
push ecx
push dword [ebp - 0x4a8]
push dword [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001662f
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001663a
call fcn.100139f0
test eax, eax
js 0x10016692
jmp 0x1001664c
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x440]
call fcn.10001600
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.100026e0
mov byte [ebp - 4], 0x14
mov ecx, dword [eax]
test ecx, ecx
je 0x1001667a
mov ecx, dword [ecx]
jmp 0x1001667c
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x28]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4a8]
call fcn.10002680
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x100166d6
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100166cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016db2
push ecx
push edx
call fcn.10002a03
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov byte [ebp - 4], 0x10
push dword [ebp - 0x4ac]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4dc], 0
test eax, eax
je 0x10016ddd
test esi, esi
je 0x10016720
mov edx, dword [esi]
jmp 0x10016722
xor edx, edx
mov ecx, dword [eax]
lea esi, [ebp - 0x4dc]
push esi
push 0
push dword [ebp - 0x4c8]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x10016bad
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
je 0x10016bad
mov eax, dword [ecx]
lea edx, [ebp - 0x4ac]
push edx
push 0x10045db0
push ecx
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
call dword [eax]
xor esi, esi
test eax, eax
cmovns esi, dword [ebp - 0x4ac]
mov dword [ebp - 0x4b0], esi
jns 0x10016791
cmp eax, 0x80004002
jne 0x10016db7
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax]
cmp ecx, esi
je 0x100167b5
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0x4b0], esi
test ecx, ecx
je 0x100167b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x100167c3
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x4cc]
mov edx, esi
mov ecx, dword [ebp - 0x4bc]
push 0
call fcn.10015de0
add esp, 4
test eax, eax
js 0x10016bc0
cmp byte [ebp - 0x4c2], 0
je 0x10016b77
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 0x17
mov esi, dword [esi]
test esi, esi
je 0x10016ddd
push str.ExcelDna.ManagedHost.AppDomainHelper
lea ecx, [ebp - 0x4b4]
call fcn.100026e0
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x4c0]
test ecx, ecx
je 0x10016838
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4c0], 0
mov eax, dword [eax]
test eax, eax
je 0x1001684c
mov ecx, dword [eax]
jmp 0x1001684e
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x4c0]
push edx
push ecx
push esi
call dword [eax + 0x44]
mov esi, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4b4]
call fcn.10002680
test esi, esi
js 0x10016b84
cmp dword [ebp - 0x4c0], 0
je 0x10016b84
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x4f0]
push eax
call esi
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x500]
push eax
call esi
mov byte [ebp - 4], 0x1a
movups xmm0, xmmword [ebp - 0x500]
mov esi, dword [ebp - 0x4c0]
movups xmmword [ebp - 0x438], xmm0
test esi, esi
je 0x10016ddd
push str.CreateFullTrustSandbox
lea ecx, [ebp - 0x4a8]
call fcn.100025e0
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
test eax, eax
je 0x100168dc
mov edx, dword [eax]
jmp 0x100168de
xor edx, edx
movups xmm0, xmmword [ebp - 0x438]
mov ecx, dword [esi]
lea eax, [ebp - 0x4f0]
push eax
push 0
sub esp, 0x10
mov eax, esp
push 0
push 0x118
push edx
push esi
movups xmmword [eax], xmm0
call dword [ecx + 0xe4]
mov esi, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x4a8]
call fcn.10002680
test esi, esi
jns 0x10016934
mov edx, 0x8a
push esi
push 0x76
lea ecx, [edx - 8]
call fcn.100159c0
add esp, 8
jmp 0x10016b13
push dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4a8]
call fcn.10001e30
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10002010
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x4d0]
push dword [ebp - 0x4bc]
call fcn.10002010
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x4d0]
mov esi, dword [ebp - 0x4b4]
cmp eax, esi
jne 0x10016990
mov byte [ebp - 0x4a1], 1
jmp 0x10016a21
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4ac], edx
test eax, eax
je 0x100169d5
mov ecx, dword [eax]
lea edx, [ebp - 0x4b0]
push edx
push 0x100463b4
push eax
call dword [ecx]
test eax, eax
js 0x10016dbd
mov eax, dword [ebp - 0x4b0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4b0]
mov edx, dword [ebp - 0x4ac]
test esi, esi
je 0x10016a0a
mov eax, dword [esi]
lea ecx, [ebp - 0x4ac]
push ecx
push 0x100463b4
push esi
call dword [eax]
test eax, eax
js 0x10016dcd
mov eax, dword [ebp - 0x4ac]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4b0]
mov edx, dword [ebp - 0x4ac]
cmp edx, ecx
jne 0x10016a12
xor eax, eax
jmp 0x10016a18
sbb eax, eax
and eax, 2
dec eax
test eax, eax
sete byte [ebp - 0x4a1]
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x4d0]
test eax, eax
je 0x10016a35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x10016a49
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x4a1], 0
mov esi, dword [ebp - 0x4a8]
jne 0x10016b35
mov ecx, dword [ebp - 0x4cc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10016ddd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x4cc]
mov dword [eax], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x10016ddd
mov edx, dword [ebp - 0x4bc]
mov ecx, dword [eax]
push dword [edx]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax]
test ecx, ecx
je 0x10016ddd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4bc]
mov dword [edx], 0
test esi, esi
je 0x10016aeb
mov eax, dword [esi]
push esi
mov dword [ebp - 0x4b4], esi
call dword [eax + 4]
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x4bc]
mov ecx, dword [edx]
mov dword [edx], esi
mov dword [ebp - 0x4b4], ecx
mov byte [ebp - 4], 0x1c
test ecx, ecx
je 0x10016aeb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, dword [ebp - 0x4bc]
push 0
call fcn.10015de0
add esp, 4
test eax, eax
jns 0x10016b35
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x10016b13
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x500]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x4f0]
push eax
call esi
jmp 0x10016b97
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x10016b43
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x500]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x4f0]
push eax
call esi
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x4c0]
test eax, eax
je 0x10016b77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 1
jmp 0x10016bc5
mov edx, 0x89
push esi
push 0x76
lea ecx, [edx - 7]
call fcn.100159c0
add esp, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x4c0]
test eax, eax
je 0x10016bc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10016bc0
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.100159c0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x45c]
cmp ecx, 8
jb 0x10016c09
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016bff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016de7
push ecx
push edx
call fcn.10002a03
add esp, 8
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4b8]
call fcn.10002680
mov byte [ebp - 4], 5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10016c59
mov edx, 0x83
push eax
push 0x76
lea ecx, [edx - 1]
call fcn.100159c0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x10016d58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10016d58
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4b8], 0
test eax, eax
je 0x10016ddd
mov ecx, dword [eax]
lea edx, [ebp - 0x4b8]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x10016d40
mov ecx, dword [ebp - 0x4b8]
test ecx, ecx
je 0x10016d40
mov eax, dword [ecx]
lea edx, [ebp - 0x4a8]
push edx
push 0x10045db0
push ecx
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4a8], 0
call dword [eax]
xor esi, esi
test eax, eax
cmovns esi, dword [ebp - 0x4a8]
mov dword [ebp - 0x4b4], esi
jns 0x10016cf1
cmp eax, 0x80004002
jne 0x10016dec
mov byte [ebp - 4], 4
mov ecx, dword [edi]
cmp ecx, esi
je 0x10016d0f
mov dword [edi], esi
xor esi, esi
mov dword [ebp - 0x4b4], esi
test ecx, ecx
je 0x10016d0f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x10016d1d
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, edi
push 1
call fcn.10015de0
add esp, 4
test eax, eax
js 0x10016d53
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 0
jmp 0x10016d58
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.100159c0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
call fcn.10001800
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10016d78
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x1c]
call fcn.10001800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100029f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10001e20
push eax
call fcn.100027e0
call fcn.10006453
push eax
call fcn.100027e0
push eax
mov dword [ebp - 0x4b0], 0
call fcn.100027e0
push eax
mov dword [ebp - 0x4ac], 0
call fcn.100027e0
push 0x80004003
call fcn.100027e0
call fcn.10006453
push eax
call fcn.100027e0
int3