Function at 0x10016140
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 0x1003fb0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4f0
mov eax, dword [0x10070024]
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 - 0x470]
call fcn.100016e0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x470]
cmp dword [ebp - 0x45c], 8
mov esi, dword [ebp - 0x460]
cmovae edx, dword [ebp - 0x470]
test esi, esi
je 0x1001621b
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 0x10016215
cmp ecx, edx
je 0x1001621b
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x10016208
sub ecx, edx
sar ecx, 1
jmp 0x1001621e
or ecx, 0xffffffff
cmp esi, ecx
jb 0x10016ed9
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
mov dword [ebp - 0x460], ecx
cmovae eax, dword [ebp - 0x470]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x4d8]
mov byte [eax], dl
cmp byte [ebp - 0x4a1], dl
jne 0x10016da8
call fcn.10015640
test eax, eax
jne 0x10016da8
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 5
mov esi, dword [ebx + 8]
test esi, esi
je 0x10016f14
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x1001628c
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 0x10016d73
mov esi, dword [ebp - 0x4c8]
test esi, esi
je 0x10016d73
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 0x10016303
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4ac], edi
mov eax, dword [esi]
push ecx
push 0x10045d8c
push esi
call dword [eax]
test eax, eax
mov dword [ebp - 0x4b0], eax
cmovns edi, dword [ebp - 0x4ac]
mov dword [ebp - 0x4e0], edi
jmp 0x1001631b
mov dword [ebp - 0x4a8], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x4b0], 0x80004002
mov byte [ebp - 4], 5
test esi, esi
je 0x10016329
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x4b0]
test eax, eax
jns 0x1001633e
cmp eax, 0x80004002
jne 0x10016ede
mov byte [ebp - 4], 8
test edi, edi
je 0x10016f14
cmp dword [ebp - 0x45c], 8
lea eax, [ebp - 0x470]
lea ecx, [ebp - 0x4b8]
cmovae eax, dword [ebp - 0x470]
push eax
call fcn.10002750
mov byte [ebp - 4], 9
mov ecx, dword [eax]
test ecx, ecx
je 0x10016378
mov ecx, dword [ecx]
jmp 0x1001637a
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.100026f0
test esi, esi
jns 0x1001639d
mov edx, 0x84
jmp 0x100163ee
cmp byte [ebp - 0x4c1], 0
mov ecx, 0x10045f54
mov eax, 0x10045f48
cmove eax, ecx
lea ecx, [ebp - 0x4b8]
push eax
call fcn.10002750
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x100163cb
mov ecx, dword [ecx]
jmp 0x100163cd
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.100026f0
test esi, esi
jns 0x10016412
mov edx, 0x92
push esi
push 0x76
mov ecx, 0x82
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10016d8b
push str.Excel_DNA:
lea ecx, [ebp - 0x4a0]
call fcn.10001690
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.10001dc0
mov dword [ebp - 0x458], 0
xor ecx, ecx
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x4d4], 1
movups xmmword [ebp - 0x458], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x448], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x4b8]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.10002750
mov byte [ebp - 4], 0xd
mov eax, 1
mov dword [ebp - 0x4d4], eax
and eax, 0xfffffffe
mov dword [ebp - 0x4d4], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x444]
cmp ecx, 8
jb 0x1001650a
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016500
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016ee4
push ecx
push edx
call fcn.10002a73
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4a0]
call fcn.100017f0
mov esi, dword [ebp - 0x4b8]
test esi, esi
je 0x10016544
mov ecx, dword [esi]
jmp 0x10016546
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x18]
push ecx
lea edx, [ebx + 0x1c]
lea ecx, [ebp - 0x488]
call fcn.10002070
add esp, 4
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x488]
cmp dword [ebp - 0x474], 8
cmovae ecx, dword [ebp - 0x488]
call fcn.10013e30
test al, al
je 0x100165cb
cmp dword [ebp - 0x474], 8
lea eax, [ebp - 0x488]
lea ecx, [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x488]
push eax
call fcn.10002750
mov byte [ebp - 4], 0x11
mov ecx, dword [eax]
test ecx, ecx
je 0x100165ae
mov ecx, dword [ecx]
jmp 0x100165b0
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.100026f0
jmp 0x10016835
push str.CONFIG
push str.__MAIN__
push dword [0x1007b048]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x4a8], eax
test eax, eax
je 0x10016835
push eax
push dword [0x1007b048]
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 [0x1007b048]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x4b4]
lea ecx, [ebp - 0x4ac]
call fcn.10013ec0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4ac]
call fcn.10013790
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 0x100166da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10016768
movzx eax, ax
or eax, 0x80070000
jmp 0x10016766
cmp eax, 0x100
ja 0x100167c4
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 0x100166bf
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 0x100166bf
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 0x10016761
push dword [ebp - 0x4b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001676c
call fcn.10013a60
test eax, eax
js 0x100167c4
jmp 0x1001677e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x440]
call fcn.10001610
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x4a8]
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.10002750
mov byte [ebp - 4], 0x14
mov ecx, dword [eax]
test ecx, ecx
je 0x100167ac
mov ecx, dword [ecx]
jmp 0x100167ae
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.100026f0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x10016808
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100167fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016ee9
push ecx
push edx
call fcn.10002a73
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 0x10016f14
test esi, esi
je 0x10016852
mov edx, dword [esi]
jmp 0x10016854
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 0x10016cdf
mov ecx, dword [ebp - 0x4dc]
test ecx, ecx
je 0x10016cdf
mov eax, dword [ecx]
lea edx, [ebp - 0x4ac]
push edx
push 0x10045dac
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 0x100168c3
cmp eax, 0x80004002
jne 0x10016eee
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x4bc]
mov ecx, dword [eax]
cmp ecx, esi
je 0x100168e7
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0x4b0], esi
test ecx, ecx
je 0x100168e7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x100168f5
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.10015ec0
add esp, 4
test eax, eax
js 0x10016cf2
cmp byte [ebp - 0x4c2], 0
je 0x10016ca9
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 0x17
mov esi, dword [esi]
test esi, esi
je 0x10016f14
push str.ExcelDna.ManagedHost.AppDomainHelper
lea ecx, [ebp - 0x4b4]
call fcn.10002750
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x4c0]
test ecx, ecx
je 0x1001696a
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 0x1001697e
mov ecx, dword [eax]
jmp 0x10016980
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.100026f0
test esi, esi
js 0x10016cb6
cmp dword [ebp - 0x4c0], 0
je 0x10016cb6
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 0x10016f14
push str.CreateFullTrustSandbox
lea ecx, [ebp - 0x4a8]
call fcn.10002650
mov byte [ebp - 4], 0x1b
mov eax, dword [eax]
test eax, eax
je 0x10016a0e
mov edx, dword [eax]
jmp 0x10016a10
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.100026f0
test esi, esi
jns 0x10016a66
mov edx, 0x8a
push esi
push 0x76
lea ecx, [edx - 8]
call fcn.10015aa0
add esp, 8
jmp 0x10016c45
push dword [ebp - 0x4e8]
lea ecx, [ebp - 0x4a8]
call fcn.10001fb0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.10002190
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x4d0]
push dword [ebp - 0x4bc]
call fcn.10002190
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x4d0]
mov esi, dword [ebp - 0x4b4]
cmp eax, esi
jne 0x10016ac2
mov byte [ebp - 0x4a1], 1
jmp 0x10016b53
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4ac], edx
test eax, eax
je 0x10016b07
mov ecx, dword [eax]
lea edx, [ebp - 0x4b0]
push edx
push 0x100463b4
push eax
call dword [ecx]
test eax, eax
js 0x10016ef4
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 0x10016b3c
mov eax, dword [esi]
lea ecx, [ebp - 0x4ac]
push ecx
push 0x100463b4
push esi
call dword [eax]
test eax, eax
js 0x10016f04
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 0x10016b44
xor eax, eax
jmp 0x10016b4a
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 0x10016b67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x1c
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x10016b7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x4a1], 0
mov esi, dword [ebp - 0x4a8]
jne 0x10016c67
mov ecx, dword [ebp - 0x4cc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x10016f14
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 0x10016f14
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 0x10016f14
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4bc]
mov dword [edx], 0
test esi, esi
je 0x10016c1d
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 0x10016c1d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, dword [ebp - 0x4bc]
push 0
call fcn.10015ec0
add esp, 4
test eax, eax
jns 0x10016c67
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x10016c45
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 0x10016cc9
mov byte [ebp - 4], 0x1a
test esi, esi
je 0x10016c75
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 0x10016ca9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 1
jmp 0x10016cf7
mov edx, 0x89
push esi
push 0x76
lea ecx, [edx - 7]
call fcn.10015aa0
add esp, 8
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x4c0]
test eax, eax
je 0x10016cf2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10016cf2
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x474]
cmp ecx, 8
jb 0x10016d3b
mov edx, dword [ebp - 0x488]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10016d31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016f1e
push ecx
push edx
call fcn.10002a73
add esp, 8
xor eax, eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 7
mov word [ebp - 0x488], ax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4b8]
call fcn.100026f0
mov byte [ebp - 4], 5
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x10016d8b
mov edx, 0x83
push eax
push 0x76
lea ecx, [edx - 1]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c8]
test eax, eax
je 0x10016e8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10016e8a
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4b8], 0
test eax, eax
je 0x10016f14
mov ecx, dword [eax]
lea edx, [ebp - 0x4b8]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
js 0x10016e72
mov ecx, dword [ebp - 0x4b8]
test ecx, ecx
je 0x10016e72
mov eax, dword [ecx]
lea edx, [ebp - 0x4a8]
push edx
push 0x10045dac
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 0x10016e23
cmp eax, 0x80004002
jne 0x10016f23
mov byte [ebp - 4], 4
mov ecx, dword [edi]
cmp ecx, esi
je 0x10016e41
mov dword [edi], esi
xor esi, esi
mov dword [ebp - 0x4b4], esi
test ecx, ecx
je 0x10016e41
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x10016e4f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [ebp - 0x4cc]
mov ecx, edi
push 1
call fcn.10015ec0
add esp, 4
test eax, eax
js 0x10016e85
mov eax, dword [ebp - 0x4d8]
xor esi, esi
mov byte [eax], 0
jmp 0x10016e8a
mov edx, 0x85
push eax
push 0x76
lea ecx, [edx - 3]
call fcn.10015aa0
add esp, 8
mov esi, 0x80004005
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x470]
call fcn.100017f0
mov byte [ebp - 4], 0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10016eaa
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x1c]
call fcn.100017f0
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.10002a65
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10001f40
push eax
call fcn.10002850
call fcn.100064c3
call fcn.100064c3
push eax
call fcn.10002850
push eax
mov dword [ebp - 0x4b0], 0
call fcn.10002850
push eax
mov dword [ebp - 0x4ac], 0
call fcn.10002850
push 0x80004003
call fcn.10002850
call fcn.100064c3
push eax
call fcn.10002850
int3