Function at 0x10016cf0
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 0x10040788
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x10071020]
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 0x10016dcb
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 0x10016dc5
cmp ecx, edx
je 0x10016dcb
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x10016db8
sub ecx, edx
sar ecx, 1
jmp 0x10016dce
or ecx, 0xffffffff
cmp esi, ecx
jb 0x10017a37
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 0x10017906
call fcn.10016200
test eax, eax
jne 0x10017906
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 5
mov esi, dword [ebx + 8]
test esi, esi
je 0x10017a6d
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x10016e3c
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 0x100178d1
mov esi, dword [ebp - 0x4c8]
test esi, esi
je 0x100178d1
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 0x10016eb3
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], edi
mov eax, dword [esi]
push ecx
push 0x10046ad0
push esi
call dword [eax]
test eax, eax
mov dword [ebp - 0x4b0], eax
cmovns edi, dword [ebp - 0x4ac]
mov dword [ebp - 0x4e0], edi
jmp 0x10016ecb
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x4b0], 0x80004002
mov byte [ebp - 4], 5
test esi, esi
je 0x10016ed9
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x4b0]
test eax, eax
jns 0x10016eee
cmp eax, 0x80004002
jne 0x10017a3c
mov byte [ebp - 4], 8
test edi, edi
je 0x10017a6d
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 0x10016f28
mov ecx, dword [ecx]
jmp 0x10016f2a
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 0x10016f4d
mov edx, 0x84
jmp 0x10016f9e
cmp byte [ebp - 0x4c1], 0
mov ecx, 0x10046c94
mov eax, 0x10046c88
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 0x10016f7b
mov ecx, dword [ecx]
jmp 0x10016f7d
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 0x10016fc2
mov edx, 0x92
push esi
push 0x76
mov ecx, 0x82
call fcn.10016650
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x100178e9
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 - 0x478], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x488], xmm0
mov dword [ebp - 0x474], 0
xor ecx, ecx
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 0x100170a2
mov ecx, dword [esi]
jmp 0x100170a4
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.100149c0
test al, al
je 0x10017129
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 0x1001710c
mov ecx, dword [ecx]
jmp 0x1001710e
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 0x10017393
push str.CONFIG
push str.__MAIN__
push dword [0x1007c040]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4a8], eax
test eax, eax
je 0x10017393
push eax
push dword [0x1007c040]
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 [0x1007c040]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x4ac]
call fcn.10014a50
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4ac]
call fcn.10014340
lea eax, [ebp - 0x4d0]
push eax
push dword [ebp - 0x4ac]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov eax, dword [ebp - 0x4ac]
xorps xmm0, xmm0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4a8], eax
xor eax, eax
movups xmmword [ebp - 0x440], xmm0
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 0x10017238
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100172c6
movzx eax, ax
or eax, 0x80070000
jmp 0x100172c4
cmp eax, 0x100
ja 0x10017322
lea eax, [ebp - 0x220]
push eax
push 0
push 0x10046ea0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001721d
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 0x1001721d
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 0x100172bf
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x100172ca
call fcn.10014610
test eax, eax
js 0x10017322
jmp 0x100172dc
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 0x1001730a
mov ecx, dword [ecx]
jmp 0x1001730c
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 0x10017366
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001735c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017a42
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 0x10017a6d
test esi, esi
je 0x100173b0
mov edx, dword [esi]
jmp 0x100173b2
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 0x1001783d
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
je 0x1001783d
mov eax, dword [ecx]
lea edx, [ebp - 0x4ac]
push edx
push 0x10046af0
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 0x10017421
cmp eax, 0x80004002
jne 0x10017a47
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax]
cmp ecx, esi
je 0x10017445
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0x4b0], esi
test ecx, ecx
je 0x10017445
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x10017453
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.10016a70
add esp, 4
test eax, eax
js 0x10017850
cmp byte [ebp - 0x4c2], 0
je 0x10017807
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 0x17
mov esi, dword [esi]
test esi, esi
je 0x10017a6d
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 0x100174c8
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 0x100174dc
mov ecx, dword [eax]
jmp 0x100174de
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 0x10017814
cmp dword [ebp - 0x4c0], 0
je 0x10017814
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 0x10017a6d
push str.CreateFullTrustSandbox
lea ecx, [ebp - 0x4a8]
call fcn.100025e0
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
test eax, eax
je 0x1001756c
mov edx, dword [eax]
jmp 0x1001756e
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 0x100175c4
mov edx, 0x8a
push esi
push 0x76
lea ecx, [edx - 8]
call fcn.10016650
add esp, 8
jmp 0x100177a3
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 0x10017620
mov byte [ebp - 0x4a1], 1
jmp 0x100176b1
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4ac], edx
test eax, eax
je 0x10017665
mov ecx, dword [eax]
lea edx, [ebp - 0x4b0]
push edx
push 0x100470f4
push eax
call dword [ecx]
test eax, eax
js 0x10017a4d
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 0x1001769a
mov eax, dword [esi]
lea ecx, [ebp - 0x4ac]
push ecx
push 0x100470f4
push esi
call dword [eax]
test eax, eax
js 0x10017a5d
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 0x100176a2
xor eax, eax
jmp 0x100176a8
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 0x100176c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x100176d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x4a1], 0
mov esi, dword [ebp - 0x4a8]
jne 0x100177c5
mov ecx, dword [ebp - 0x4cc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10017a6d
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 0x10017a6d
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 0x10017a6d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4bc]
mov dword [edx], 0
test esi, esi
je 0x1001777b
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 0x1001777b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, dword [ebp - 0x4bc]
push 0
call fcn.10016a70
add esp, 4
test eax, eax
jns 0x100177c5
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x100177a3
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 0x10017827
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x100177d3
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 0x10017807
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 1
jmp 0x10017855
mov edx, 0x89
push esi
push 0x76
lea ecx, [edx - 7]
call fcn.10016650
add esp, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x4c0]
test eax, eax
je 0x10017850
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10017850
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.10016650
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x45c]
cmp ecx, 8
jb 0x10017899
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001788f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017a77
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 0x100178e9
mov edx, 0x83
push eax
push 0x76
lea ecx, [edx - 1]
call fcn.10016650
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x100179e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100179e8
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4b8], 0
test eax, eax
je 0x10017a6d
mov ecx, dword [eax]
lea edx, [ebp - 0x4b8]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x100179d0
mov ecx, dword [ebp - 0x4b8]
test ecx, ecx
je 0x100179d0
mov eax, dword [ecx]
lea edx, [ebp - 0x4a8]
push edx
push 0x10046af0
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 0x10017981
cmp eax, 0x80004002
jne 0x10017a7c
mov byte [ebp - 4], 4
mov ecx, dword [edi]
cmp ecx, esi
je 0x1001799f
mov dword [edi], esi
xor esi, esi
mov dword [ebp - 0x4b4], esi
test ecx, ecx
je 0x1001799f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x100179ad
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, edi
push 1
call fcn.10016a70
add esp, 4
test eax, eax
js 0x100179e3
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 0
jmp 0x100179e8
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.10016650
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 0x10017a08
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.1000600d
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.1000600d
push eax
call fcn.100027e0
int3