Function at 0x1002b05
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 4
mov esi, ecx
push 0x40000000
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1002b53
push dword [esi + 0x10]
push 0x272d
call fcn.01001924
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100249f
jmp 0x100352c
push edi
lea ecx, [ebp - 0x28]
push ecx
push 3
push 0x10012ac
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003523
mov ecx, esi
mov dword [ebp - 0x24], edi
call fcn.01002751
test eax, eax
jbe 0x1003523
push ebx
mov ebx, 0x2800
cmp dword [esi + 0x14], 0
je 0x1002bba
mov eax, dword [esi + 4]
add eax, edi
mov eax, dword [eax]
push 0x5c
push dword [eax + 0x34]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1002ba6
inc eax
inc eax
push dword [esi + 0x14]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x100350c
push 0
push 0x10014e0
push dword [ebp - 4]
call fcn.010026b5
push ebx
push dword [0x1011564]
push 0x64
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
push ebx
push dword [0x1011564]
push 0x66
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
push dword [eax + 0x24]
push 0x10014c8
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
movzx eax, word [eax + 0x28]
push eax
call fcn.010026fc
push eax
push 0x1001490
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
push 0x1001468
push ebx
push dword [0x1011568]
call fcn.01002881
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1002ce5
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
je 0x1002ce5
push eax
push ebx
push dword [0x1011568]
call fcn.010028bb
mov ecx, dword [ebp - 0x20]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x20], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1002cb7
sub eax, dword [ebp - 0x20]
sar eax, 1
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 0x20], eax
cmp word [eax], dx
je 0x1002c96
push 0x1001464
push ebx
push dword [0x1011568]
call fcn.010028bb
jmp 0x1002c96
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1002d27
push eax
push 0x100143c
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x1002d59
push eax
push 0x1001410
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
push dword [eax + 0x2c]
push 0x10013e0
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x1002d98
mov eax, 0x10013dc
push eax
push 0x10013a0
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
push 0
push 0x100137c
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
and dword [ebp - 0x10], 0
lea ecx, [eax + 0x44]
mov dword [ebp - 0x1c], eax
call fcn.01002751
test eax, eax
jbe 0x1002e19
mov eax, dword [ebp - 0x1c]
jmp 0x1002ded
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 0x10]
push 0
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
inc dword [ebp - 0x10]
lea ecx, [eax + 0x44]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0x10], eax
jb 0x1002dea
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
cmp dword [eax + 0x38], 0
je 0x1002ec2
push ebx
push dword [0x1011564]
push 0x73
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
push dword [eax + 0x68]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 0
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
and dword [ebp - 0x10], 0
lea ecx, [eax + 0x80]
mov dword [ebp - 0x1c], eax
call fcn.01002751
test eax, eax
jbe 0x1002ec2
mov eax, dword [ebp - 0x1c]
jmp 0x1002e90
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x84]
mov ecx, dword [ebp - 0x10]
push 1
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
inc dword [ebp - 0x10]
lea ecx, [eax + 0x80]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0x10], eax
jb 0x1002e8d
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
and dword [ebp - 0x10], 0
lea ecx, [eax + 0x90]
mov dword [ebp - 0x1c], eax
call fcn.01002751
test eax, eax
jbe 0x100346c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x94]
and dword [ebp - 8], 0
jmp 0x1002ef4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
cmp byte [eax], 0
push ebx
push dword [0x1011564]
je 0x10030a9
push 0x6e
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
push dword [eax + 0x18]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 0
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
push ebx
push dword [0x1011564]
push 0x71
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
push dword [eax + 0x1c]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov ecx, dword [eax + ecx]
and dword [ebp - 0xc], 0
add ecx, 0x20
call fcn.01002751
test eax, eax
jbe 0x100303a
push ebx
push dword [0x1011564]
push 0x72
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0xc]
push dword [eax + ecx*4]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov ecx, dword [eax + ecx]
inc dword [ebp - 0xc]
add ecx, 0x20
call fcn.01002751
cmp dword [ebp - 0xc], eax
jb 0x1002fc3
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + ecx]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x20], eax
call fcn.01002751
test eax, eax
jbe 0x100344b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 0xc]
push 1
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + ecx]
lea ecx, [eax + 0x30]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0xc], eax
jb 0x1003066
jmp 0x100344b
push 0xc8
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
push dword [eax + 0x50]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 0
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov ecx, dword [eax + ecx]
and dword [ebp - 0x14], 0
add ecx, 0x58
call fcn.01002751
test eax, eax
jbe 0x10033e5
push ebx
push dword [0x1011564]
push 0xd0
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
push dword [eax + 0x10]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 1
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [eax + ecx*4]
and dword [ebp - 0xc], 0
add ecx, 0x18
call fcn.01002751
test eax, eax
jbe 0x10033bf
and dword [ebp - 0x1c], 0
push ebx
push dword [0x1011564]
push 0xca
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + ecx]
push dword [eax + 0x10]
push dword [0x1011564]
push ebx
push dword [0x1011568]
call fcn.01002915
add esp, 0x10
push 2
push dword [0x1011568]
push dword [ebp - 4]
call fcn.010026b5
push ebx
push dword [0x1011564]
push 0xcc
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 3
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
and dword [ebp - 0x18], 0
lea ecx, [eax + 0x28]
mov dword [ebp - 0x20], eax
call fcn.01002751
test eax, eax
jbe 0x10032b8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x18]
push 4
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
inc dword [ebp - 0x18]
lea ecx, [eax + 0x28]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0x18], eax
jb 0x100326b
push ebx
push dword [0x1011564]
push 0xce
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 3
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
and dword [ebp - 0x18], 0
lea ecx, [eax + 0x48]
mov dword [ebp - 0x20], eax
call fcn.01002751
test eax, eax
jbe 0x1003364
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x18]
push 4
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax]
inc dword [ebp - 0x18]
lea ecx, [eax + 0x48]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0x18], eax
jb 0x1003317
push ebx
push dword [0x1011564]
push 0xcf
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 3
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
mov eax, dword [eax + 0x5c]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [eax + ecx*4]
inc dword [ebp - 0xc]
add dword [ebp - 0x1c], 4
add ecx, 0x18
call fcn.01002751
cmp dword [ebp - 0xc], eax
jb 0x10031a8
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
mov ecx, dword [eax + ecx]
inc dword [ebp - 0x14]
add ecx, 0x58
call fcn.01002751
cmp dword [ebp - 0x14], eax
jb 0x100311a
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + ecx]
lea ecx, [eax + 0x68]
mov dword [ebp - 0x20], eax
call fcn.01002751
test eax, eax
jbe 0x100344b
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x6c]
mov ecx, dword [ebp - 0xc]
push 1
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
mov eax, dword [eax + 0x94]
mov ecx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + ecx]
lea ecx, [eax + 0x68]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0xc], eax
jb 0x100340d
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi]
inc dword [ebp - 0x10]
add dword [ebp - 8], 4
add ecx, 0x90
call fcn.01002751
cmp dword [ebp - 0x10], eax
jb 0x1002ef1
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
and dword [ebp - 0x10], 0
lea ecx, [eax + 0xa0]
mov dword [ebp - 0x1c], eax
call fcn.01002751
test eax, eax
jbe 0x10034c2
mov eax, dword [ebp - 0x1c]
jmp 0x1003490
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xa4]
mov ecx, dword [ebp - 0x10]
push 0
push dword [eax + ecx*4]
push dword [ebp - 4]
call fcn.010026b5
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
inc dword [ebp - 0x10]
lea ecx, [eax + 0xa0]
mov dword [ebp - 0x20], eax
call fcn.01002751
cmp dword [ebp - 0x10], eax
jb 0x100348d
mov eax, dword [esi + 4]
mov eax, dword [eax + edi]
push 0
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.010026b5
push ebx
push dword [0x1011564]
push 0x65
push dword [0x100c0c4]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push dword [0x1011564]
push dword [ebp - 4]
call fcn.010026b5
push 0
push 0x10013dc
push dword [ebp - 4]
call fcn.010026b5
inc dword [ebp - 0x24]
mov ecx, esi
add edi, 4
call fcn.01002751
cmp dword [ebp - 0x24], eax
jb 0x1002b86
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
leave
ret