Function at 0x10006a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067c89
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x1007a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 7
xor edx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], dx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], dx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], edi
mov word [ebp - 0x7c], dx
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], cx
push 0xffffffffffffffff
push edi
add eax, 0x9c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.100024e0
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x10006ae6
lea ecx, [ebp - 0xd0]
call fcn.100484d2
push 0x10074234
lea edx, [ebp - 0xd0]
push edx
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0xc0], 0
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xd0], vtable.Poco::NullPointerException.0
call fcn.1004af94
add eax, 0xc
lea esi, [ebp - 0xf4]
call fcn.10004320
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.10009510
mov byte [ebp - 4], 4
cmp dword [ebp - 0xdc], 8
jb 0x10006b21
mov eax, dword [ebp - 0xf0]
push eax
call fcn.10047382
add esp, 4
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x10006b71
lea ecx, [ebp - 0xd0]
call fcn.100484d2
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0xc0], 0
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
push 0x10074234
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], vtable.Poco::NullPointerException.0
push ecx
call fcn.1004af94
mov ecx, dword [eax + 0xb0]
mov ebx, dword [ecx]
mov esi, dword [eax + 0x9c]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], esi
jmp 0x10006b9e
mov ebx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x98]
xor edi, edi
mov edx, dword [eax + 0xb0]
mov eax, dword [eax + 0x9c]
mov dword [ebp - 0xf8], edx
cmp esi, edi
je 0x10006bb8
cmp esi, eax
je 0x10006bbd
call fcn.10048865
cmp ebx, dword [ebp - 0xf8]
je 0x10006eb6
cmp esi, edi
jne 0x10006c8f
call fcn.10048865
xor esi, esi
cmp ebx, dword [esi + 0x14]
jne 0x10006be2
call fcn.10048865
mov eax, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
push eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 6
cmp ebx, edi
je 0x10006a9d
cmp byte [ebx + 6], 0
je 0x10006ceb
mov eax, dword [ebp - 0xa0]
cmp byte [eax], 0
jne 0x10006ceb
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x10006e6d
cmp dword [ebp - 0x14], 8
mov edi, dword [eax + 0x84]
mov ebx, dword [eax + 0x80]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], 1
jae 0x10006c4d
lea eax, [ebp - 0x28]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006ca7
push 0
lea ecx, [ebp - 0xd4]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006c96
cmp dword [ebp - 0xd4], edi
jne 0x10006c96
xor edi, edi
jmp 0x10006c9c
mov esi, dword [esi]
jmp 0x10006bd8
mov edi, dword [ebp - 0x88]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10006cda
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
sub esp, 8
mov eax, esp
mov dword [ebp - 0x88], esp
push ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0xd8]
push 1
push 6
push eax
call fcn.10006f90
mov ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x8c]
mov byte [ecx], 1
xor edi, edi
cmp byte [ebx + 5], 0
je 0x10006d39
mov edx, dword [ebp - 0x84]
cmp dword [edx], edi
jne 0x10006d39
mov esi, dword [ebp - 0x9c]
cmp dword [esi], edi
jne 0x10006d39
mov ecx, dword [ebp + 0x18]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov eax, ecx
mov dword [ebp - 0x88], esp
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.100067c0
mov edi, dword [ebx + 0xb8]
lea edx, [ebx + 0xc]
push edx
lea esi, [ebp - 0xf4]
call fcn.10004380
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x28]
mov edx, 8
cmp dword [ebp - 0x14], edx
jae 0x10006d62
lea ecx, [ebp - 0x28]
cmp dword [eax + 0x18], edx
jb 0x10006d6c
mov eax, dword [eax + 4]
jmp 0x10006d6f
add eax, 4
mov esi, dword [ebp - 0x9c]
mov esi, dword [esi]
mov edx, dword [edi]
push esi
mov esi, dword [ebp - 0x84]
mov esi, dword [esi]
push esi
push ecx
push eax
mov eax, dword [edx + 0xc]
push 1
mov ecx, edi
call eax
cmp dword [ebp - 0xdc], 8
jb 0x10006da6
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.10047382
add esp, 4
mov eax, dword [ebp - 0x98]
xor edi, edi
xor edx, edx
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], edi
mov word [ebp - 0xf0], dx
cmp eax, edi
jne 0x10006e66
call fcn.10048865
xor eax, eax
mov esi, dword [ebp - 0x94]
cmp esi, dword [eax + 0x14]
jne 0x10006de6
call fcn.10048865
mov eax, dword [esi]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x90]
push esi
mov dword [ebp - 0x94], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10006e27
push ebx
call fcn.10004470
push ebx
call fcn.10047382
add esp, 4
push esi
mov dword [ebp - 0x8c], edi
call fcn.10047382
add esp, 4
mov dword [ebp - 0x90], edi
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x10006b90
lea ecx, [ebp - 0xd0]
call fcn.100484d2
xor eax, eax
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xc0], al
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
jmp 0x10006b56
mov eax, dword [eax]
jmp 0x10006dd6
lea ecx, [ebp - 0x12c]
call fcn.100484d2
push 0x10074234
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x108], 0xf
mov dword [ebp - 0x10c], edi
mov byte [ebp - 0x11c], 0
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x100], edi
mov dword [ebp - method.Poco::Exception.virtual_0], vtable.Poco::NullPointerException.0
push eax
jmp 0x10006b6c
mov ebx, 8
cmp dword [ebp - 0x14], ebx
jb 0x10006ecc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10047382
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], dx
cmp dword [ebp - 0x68], ebx
jb 0x10006eee
mov eax, dword [ebp - 0x7c]
push eax
call fcn.10047382
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], edi
mov word [ebp - 0x7c], cx
cmp dword [ebp - 0x4c], ebx
jb 0x10006f0b
mov edx, dword [ebp - 0x60]
push edx
call fcn.10047382
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], ax
cmp dword [ebp - 0x30], ebx
jb 0x10006f28
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10047382
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x18]
xor edx, edx
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], dx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10006f70
mov eax, dword [ebp + 0x1c]
mov esi, eax
cmp eax, edi
je 0x10006f61
push eax
call fcn.10004470
push esi
call fcn.10047382
add esp, 4
mov ecx, dword [ebp + 0x18]
push ecx
mov dword [ebp + 0x1c], edi
call fcn.10047382
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18