Function at 0x10010080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100270ab
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1a74
call fcn.10024eb0
mov eax, dword [0x10031018]
xor eax, esp
mov dword [esp + 0x1a70], eax
push ebx
push esi
push edi
mov eax, dword [0x10031018]
xor eax, esp
push eax
lea eax, [esp + 0x1a88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor al, al
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x13], al
test edi, edi
je 0x100107c8
test ebx, ebx
je 0x100107c8
test esi, esi
je 0x100107c8
test ecx, ecx
je 0x100107c8
cmp word [ecx], 0
je 0x100107c8
lea eax, [esp + 0x3c]
push eax
call fcn.100017c0
test al, al
je 0x10010724
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
lea eax, [esp + 0x23c]
mov word [esp + 0x23c], cx
mov esi, ebx
mov ecx, eax
mov word [esp + 0x166c], dx
mov dword [esp + 0x20], 0
mov edx, 0x208
sub esi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x1001016e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1001016e
mov word [eax], cx
add eax, 2
dec edx
jne 0x10010150
jmp 0x10010172
test edx, edx
jne 0x10010175
sub eax, 2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x23c]
push eax
call esi
dec eax
mov edi, 0x5c
js 0x100101ab
cmp word [esp + eax*2 + 0x23c], di
je 0x100101a1
dec eax
jns 0x10010192
jmp 0x100101ab
xor ecx, ecx
mov word [esp + eax*2 + 0x23c], cx
lea edx, [esp + 0x23c]
push edx
call esi
cmp word [esp + eax*2 + 0x23a], di
je 0x10010206
mov edx, 0x208
lea eax, [esp + 0x23c]
jmp 0x100101d0
cmp word [eax], 0
je 0x100101de
add eax, 2
dec edx
jne 0x100101d0
jmp 0x10010206
test edx, edx
je 0x10010206
mov ecx, 0x208
sub ecx, edx
mov eax, 0x208
sub eax, ecx
push 0x1002b2bc
lea ecx, [esp + ecx*2 + 0x240]
mov edx, SysReAllocString
call fcn.1000d270
lea eax, [esp + 0x166c]
lea esi, [esp + 0x23c]
mov ecx, eax
mov edx, 0x208
sub esi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x1001023e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1001023e
mov word [eax], cx
add eax, 2
dec edx
jne 0x10010220
jmp 0x10010242
test edx, edx
jne 0x10010245
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, 0x208
lea ecx, [esp + 0x166c]
cmp word [ecx], dx
je 0x100102bc
add ecx, 2
dec eax
jne 0x10010256
mov edi, dword [esp + 0x14]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x1684]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x100102ec
mov eax, dword [edi + 0x218]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100102b3
mov dword [edi + 0x650], 0x1f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100102f6
test eax, eax
je 0x10010261
mov edi, dword [esp + 0x14]
mov ecx, 0x208
sub ecx, eax
lea eax, [edi + 4]
push eax
mov eax, 0x208
sub eax, ecx
lea ecx, [esp + ecx*2 + 0x1670]
mov edx, SysReAllocString
call fcn.1000d270
jmp 0x10010265
mov dword [edi + 0x650], 3
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [esp + 0x64c], ax
lea eax, [esp + 0x3c]
mov word [esp + 0x125c], cx
mov esi, 0x1002c63c
mov ecx, eax
mov word [esp + 0x3c], dx
mov word [esp + 0xa5c], dx
mov dword [esp + 0x14], 0
mov edx, 0x100
sub esi, ecx
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x10010351
movzx ecx, word [esi + eax]
test cx, cx
je 0x10010351
mov word [eax], cx
add eax, 2
dec edx
jne 0x10010333
jmp 0x10010355
test edx, edx
jne 0x10010358
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, 0x100
lea ecx, [esp + 0x3c]
cmp word [ecx], dx
je 0x10010373
add ecx, 2
dec eax
jne 0x10010366
jmp 0x10010397
test eax, eax
je 0x10010397
mov ecx, 0x100
sub ecx, eax
lea eax, [edi + 4]
push eax
mov eax, 0x100
sub eax, ecx
lea ecx, [esp + ecx*2 + 0x40]
mov edx, SysReAllocString
call fcn.1000d270
mov eax, 0x100
lea ecx, [esp + 0x3c]
cmp word [ecx], 0
je 0x100103ae
add ecx, 2
dec eax
jne 0x100103a0
jmp 0x100103d3
test eax, eax
je 0x100103d3
mov ecx, 0x100
sub ecx, eax
mov eax, 0x100
sub eax, ecx
push 0x1002c63c
lea ecx, [esp + ecx*2 + 0x40]
mov edx, SysReAllocString
call fcn.1000d270
lea eax, [esp + 0x64c]
mov esi, 0x1002c63c
mov ecx, eax
mov edx, 0x208
sub esi, ecx
jmp 0x100103f0
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x1001040e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1001040e
mov word [eax], cx
add eax, 2
dec edx
jne 0x100103f0
jmp 0x10010412
test edx, edx
jne 0x10010415
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, 0x208
lea ecx, [esp + 0x64c]
cmp word [ecx], dx
je 0x10010433
add ecx, 2
dec eax
jne 0x10010426
jmp 0x10010457
test eax, eax
je 0x10010457
mov ecx, 0x208
sub ecx, eax
mov eax, 0x208
sub eax, ecx
push ebx
lea ecx, [esp + ecx*2 + 0x650]
mov edx, SysReAllocString
call fcn.1000d270
mov eax, 0x208
lea ecx, [esp + 0x64c]
cmp word [ecx], 0
je 0x10010471
add ecx, 2
dec eax
jne 0x10010463
jmp 0x10010499
test eax, eax
je 0x10010499
mov ecx, 0x208
sub ecx, eax
mov eax, 0x208
sub eax, ecx
push 0x1002c63c
lea ecx, [esp + ecx*2 + 0x650]
mov edx, SysReAllocString
call fcn.1000d270
lea eax, [esp + 0x125c]
mov esi, 0x1002c63c
mov ecx, eax
mov edx, 0x208
sub esi, ecx
mov edi, edi
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x100104ce
movzx ecx, word [esi + eax]
test cx, cx
je 0x100104ce
mov word [eax], cx
add eax, 2
dec edx
jne 0x100104b0
jmp 0x100104d2
test edx, edx
jne 0x100104d5
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, 0x208
lea ecx, [esp + 0x125c]
cmp word [ecx], dx
je 0x100104f3
add ecx, 2
dec eax
jne 0x100104e6
jmp 0x1001051b
test eax, eax
je 0x1001051b
mov ecx, 0x208
sub ecx, eax
mov eax, 0x208
sub eax, ecx
push 0x1002c63c
lea ecx, [esp + ecx*2 + 0x1260]
mov edx, SysReAllocString
call fcn.1000d270
lea eax, [esp + 0xa5c]
mov esi, str._CPT
mov ecx, eax
mov edx, 0x400
sub esi, ecx
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x1001054e
movzx ecx, word [esi + eax]
test cx, cx
je 0x1001054e
mov word [eax], cx
add eax, 2
dec edx
jne 0x10010530
jmp 0x10010552
test edx, edx
jne 0x10010555
sub eax, 2
xor edx, edx
mov word [eax], dx
mov edx, 0x400
lea eax, [esp + 0xa5c]
cmp word [eax], 0
je 0x10010574
add eax, 2
dec edx
jne 0x10010566
jmp 0x1001059c
test edx, edx
je 0x1001059c
mov ecx, 0x400
sub ecx, edx
mov eax, 0x400
sub eax, ecx
push 0x1002c64c
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
mov edx, 0x400
lea eax, [esp + 0xa5c]
cmp word [eax], 0
je 0x100105b6
add eax, 2
dec edx
jne 0x100105a8
jmp 0x100105de
test edx, edx
je 0x100105de
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x400
sub ecx, edx
mov eax, 0x400
sub eax, ecx
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
mov eax, 0x400
lea ecx, [esp + 0xa5c]
lea ebx, [ebx]
cmp word [ecx], 0
je 0x100105fe
add ecx, 2
dec eax
jne 0x100105f0
jmp 0x10010626
test eax, eax
je 0x10010626
mov ecx, 0x400
sub ecx, eax
mov eax, 0x400
sub eax, ecx
push 0x1002c64c
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
mov edx, 0x400
lea eax, [esp + 0xa5c]
cmp word [eax], 0
je 0x10010640
add eax, 2
dec edx
jne 0x10010632
jmp 0x1001066b
test edx, edx
je 0x1001066b
mov ecx, 0x400
sub ecx, edx
lea edx, [esp + 0x64c]
mov eax, 0x400
push edx
sub eax, ecx
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
mov eax, 0x400
lea ecx, [esp + 0xa5c]
cmp word [ecx], 0
je 0x10010685
add ecx, 2
dec eax
jne 0x10010677
jmp 0x100106ad
test eax, eax
je 0x100106ad
mov ecx, 0x400
sub ecx, eax
mov eax, 0x400
sub eax, ecx
push 0x1002c64c
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
mov edx, 0x400
lea eax, [esp + 0xa5c]
lea esp, [esp]
cmp word [eax], 0
je 0x100106ce
add eax, 2
dec edx
jne 0x100106c0
jmp 0x100106f9
test edx, edx
je 0x100106f9
lea eax, [esp + 0x125c]
push eax
mov ecx, 0x400
sub ecx, edx
mov eax, 0x400
sub eax, ecx
lea ecx, [esp + ecx*2 + 0xa60]
mov edx, SysReAllocString
call fcn.1000d270
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa60]
push edx
call fcn.10010f70
mov eax, dword [esp + 0x14]
mov dword [edi + 0x650], eax
test eax, eax
jne 0x1001079e
mov al, 1
jmp 0x100107a2
xor eax, eax
mov dword [esp + 0x24], vtable.CPtProv.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x1a90], eax
mov eax, edi
lea esi, [esp + 0x24]
call fcn.1001c3d0
test al, al
je 0x10010787
mov eax, dword [esp + 0x18]
push eax
push ebx
mov ecx, esi
push ecx
mov ecx, dword [esp + 0x28]
mov edx, edi
call fcn.1001c660
test al, al
je 0x10010777
mov byte [esp + 0x13], 1
jmp 0x10010795
mov edx, dword [esp + 0x14]
mov dword [edx + 0x650], 0x1f
jmp 0x10010795
mov eax, dword [esp + 0x14]
mov dword [eax + 0x650], 5
lea ecx, [esp + 0x24]
call fcn.1001c3a0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1a88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a70]
xor ecx, esp
call fcn.1001cf84
mov esp, ebp
pop ebp
ret 0xc
mov dword [edx + 0x650], 2
jmp 0x100107a2