Function at 0x402955
Capabilities:
Create directory
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8124
call fcn.0041b1b0
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8120], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 7
pop ebx
mov dword [esp + 0x30], eax
xor eax, eax
xor edi, edi
push 3
push 0x4267c4
mov dword [esp + 0x208], ebx
mov dword [esp + 0x204], edi
mov word [esp + 0x1f4], ax
mov dword [esp + 0x358], ebx
mov dword [esp + 0x354], edi
mov word [esp + 0x344], ax
mov dword [esp + 0x390], ebx
mov dword [esp + 0x38c], edi
mov word [esp + 0x37c], ax
mov byte [esp + 0x1f], al
call fcn.004020d4
push eax
call dword [sym.imp.USER32.dll_CharNextW]
push esi
lea ecx, [esp + 0x2ec]
mov dword [esp + 0x3dc], 0xe020b01
mov dword [esp + 0x3e0], 0xf040e03
mov dword [esp + 0x3e4], 0xe060f05
mov byte [esp + 0x3e8], bl
mov word [esp + 0x3e9], 0x80e
mov byte [esp + 0x3eb], 0xd
mov dword [esp + 0x3cc], 0xe0a0d09
mov dword [esp + 0x3d0], 0xd0c0a0b
mov dword [esp + 0x3d4], 0xe0e0b0d
mov dword [esp + 0x3d8], 0xf100e0f
mov dword [esp + 0x300], 0xf
mov dword [esp + 0x2fc], edi
mov byte [esp + 0x2ec], 0
call fcn.004055f1
cmp dword [esp + 0x2fc], 0x10
mov ecx, dword [esp + 0x2e8]
mov eax, ecx
jae 0x402a87
lea eax, [esp + 0x2e8]
add eax, dword [esp + 0x2f8]
cmp dword [esp + 0x2fc], 0x10
jae 0x402a9f
lea ecx, [esp + 0x2e8]
push dword [esp + 0x24]
and dword [esp + 0x2e0], edi
push eax
push ecx
lea eax, [esp + 0x2d8]
xor edx, edx
push eax
mov dword [esp + 0x2f0], ebx
mov word [esp + 0x2dc], dx
call fcn.00406767
lea esi, [esp + 0x2cc]
lea edi, [esp + 0x1ec]
call fcn.00401370
push 0
push 1
mov ecx, esi
call fcn.00401455
push 5
push 0x4267a0
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x402af9
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1f4]
call fcn.004013b7
cmp eax, 0xffffffff
setne cl
mov byte [0x42836c], cl
test cl, cl
je 0x402b8e
push 0x422a08
push 5
push eax
lea eax, [esp + 0x1f8]
push eax
call fcn.0040456b
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
push ebx
push 0x42676c
call fcn.004020d4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x11
push 0x42677c
call fcn.004020d4
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0xd8
call fcn.0040c593
pop ecx
test eax, eax
je 0x402baa
call fcn.00406b76
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x402bb3
and dword [esp + 0x20], 0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3ac]
mov ebx, esi
call fcn.00407262
lea eax, [esi + 0xbc]
push eax
lea eax, [esp + 0x35c]
call fcn.00404518
lea eax, [esi + 0xa0]
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x298]
call fcn.00404518
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1b0], ax
push ebx
lea eax, [esi + 0x1c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1b8]
mov dword [esp + 0x1cc], 7
mov dword [esp + 0x1c8], ebx
call fcn.00405780
push ebx
lea eax, [esi + 0x44]
push eax
or eax, 0xffffffff
call fcn.00405780
push ebx
add esi, 0x64
push esi
or eax, 0xffffffff
call fcn.00405780
sub esp, 0x1c
push 7
pop ecx
mov esi, edi
mov edi, esp
push 0xa
push 0x4267cc
rep movsd dword es:[edi], dword [esi]
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x408]
push eax
call edi
add esp, 0x24
push ebx
push 1
lea ecx, [esp + 0x1b8]
call fcn.00401455
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x36c], 8
mov eax, dword [esp + 0x358]
jae 0x402cb0
lea eax, [esp + 0x358]
push eax
push 0x10
push 0x4267e0
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp byte [0x42836c], 0
je 0x402dd8
cmp dword [esp + 0x1fc], 0
jbe 0x402e4d
cmp dword [esp + 0x200], 8
mov eax, dword [esp + 0x1ec]
jae 0x402d24
lea eax, [esp + 0x1ec]
push eax
push 0x20
push 0x426800
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x20c]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
cmp dword [esp + 0x1fc], 0
jne 0x4035f8
push 0x422a44
push 0x16
push 0x426868
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x2f
push 0x4268b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
call fcn.0040246b
push 2
pop esi
push esi
push 0x4267ac
call fcn.004020d4
mov ebx, eax
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
test ax, ax
jne 0x402ded
sub ecx, edx
sar ecx, 1
push ecx
push ebx
xor eax, eax
lea ecx, [esp + 0x1f4]
call fcn.004013b7
push esi
push 0x4267b0
mov dword [esp + 0x20], eax
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402e1f
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x1f4]
call fcn.004013b7
cmp dword [esp + 0x18], 0xffffffff
je 0x402e4d
cmp eax, 0xffffffff
jne 0x402d65
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402e65
lea eax, [esp + 0x294]
push eax
push 0x13
push 0x426840
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401455
push 0x422a0c
lea esi, [esp + 0x2d0]
call fcn.004012ca
push ebx
push 0x421072
lea ecx, [esp + 0x210]
mov dword [esp + 0x224], 0xf
mov dword [esp + 0x220], ebx
mov byte [esp + 0x210], bl
call fcn.00405cb8
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402efb
lea eax, [esp + 0x294]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x403009
cmp dword [esp + 0x2a8], 8
mov eax, dword [esp + 0x294]
jae 0x402f36
lea eax, [esp + 0x294]
push eax
push 0x17
push 0x426994
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x210]
call fcn.0040568a
push esi
push edi
lea ecx, [esp + 0x2d4]
call fcn.00401455
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x29c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x360]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x3b4]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x2f0]
call fcn.0040568a
push esi
push edi
lea ecx, [esp + 0x37c]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x344]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x1f4]
call fcn.00401455
mov eax, ebx
jmp 0x40404b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x294]
push eax
lea edi, [esp + 0x3c]
call fcn.0040459b
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x44], ebx
jne 0x4035d8
lea ecx, [esp + ecx + 0x38]
mov eax, dword [ecx + 0x38]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403061
push ebx
call fcn.00401ff3
sub esp, 0x18
mov ecx, esp
lea eax, [esi - 0x3999]
cdq
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
lea ebx, [esp + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0040419d
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x44], 6
jne 0x4030ad
mov eax, dword [esp + eax + 0x70]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xdf0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004040c3
xor eax, eax
mov word [esp + 0x1d0], ax
mov eax, 0x3999
lea ecx, [esp + 0xdf0]
lea edx, [esp + 0x1d0]
mov dword [esp + 0x1e4], 7
mov dword [esp + 0x1e0], ebx
call fcn.0040149e
push ebx
lea eax, [esp + 0x1d4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2d4]
call fcn.00405780
lea eax, [esp + 0x50]
call fcn.00405b54
test eax, eax
jne 0x403142
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x38]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x403131
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x403142
push ebx
call fcn.00401ff3
push ebx
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
push 0x422a10
lea esi, [esp + 0x308]
call fcn.004012ca
push 0x422a14
lea esi, [esp + 0x324]
call fcn.004012ca
push 7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 8
pop esi
push dword [esp + 0x24]
mov edi, dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x2b4], ax
lea eax, [esp + edi + 0x3de]
push eax
dec eax
push eax
lea eax, [esp + 0x2bc]
push eax
mov dword [esp + 0x2d4], esi
mov dword [esp + 0x2d0], ebx
call fcn.004067c2
push dword [esp + 0x24]
xor eax, eax
mov word [esp + 0x1d4], ax
lea eax, [esp + edi + 0x3ce]
push eax
lea eax, [esp + edi + 0x3d1]
push eax
lea eax, [esp + 0x1dc]
push eax
mov dword [esp + 0x1f4], esi
mov dword [esp + 0x1f0], ebx
call fcn.004067c2
push ebx
lea eax, [esp + 0x2b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x30c]
call fcn.00405780
push ebx
lea eax, [esp + 0x1d4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x328]
call fcn.00405780
push ebx
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x2b8]
call fcn.00401455
add dword [esp + 0x10], 2
dec dword [esp + 0x1c]
jne 0x403182
cmp dword [esp + 0x318], 8
mov eax, dword [esp + 0x304]
jae 0x403267
lea eax, [esp + 0x304]
push dword [esp + 0x314]
lea ecx, [esp + 0x2d0]
push eax
xor eax, eax
call fcn.004013b7
cmp dword [esp + 0x334], 8
mov edi, eax
mov eax, dword [esp + 0x320]
jae 0x403297
lea eax, [esp + 0x320]
push dword [esp + 0x330]
lea ecx, [esp + 0x2d0]
push eax
xor eax, eax
call fcn.004013b7
cmp edi, 0xffffffff
je 0x40356d
cmp eax, 0xffffffff
je 0x40356d
sub eax, edi
sub eax, dword [esp + 0x314]
add edi, dword [esp + 0x330]
push eax
xor ecx, ecx
push edi
lea eax, [esp + 0x2d4]
lea edi, [esp + 0x22c]
mov dword [esp + 0x240], esi
mov dword [esp + 0x23c], ebx
mov word [esp + 0x22c], cx
call fcn.0040151b
mov eax, edi
push eax
lea edi, [esp + 0xf4]
call fcn.00404d79
xor eax, eax
mov dword [esp + 0x1c4], esi
mov dword [esp + 0x1c0], ebx
mov word [esp + 0x1b0], ax
jmp 0x4034f8
push 1
push 0x422a18
xor eax, eax
call fcn.004013b7
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4034dc
push dword [esp + 0x10]
xor eax, eax
mov word [esp + 0x1d4], ax
push ebx
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x1d8]
mov dword [esp + 0x1ec], esi
mov dword [esp + 0x1e8], ebx
call fcn.0040151b
xor eax, eax
mov word [esp + 0x2b0], ax
mov eax, dword [esp + 0x10]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1b8]
lea edi, [esp + 0x2b8]
mov dword [esp + 0x2cc], esi
mov dword [esp + 0x2c8], ebx
call fcn.0040151b
push 0x422a1c
lea ecx, [esp + 0x1d4]
call fcn.004066f6
test eax, eax
jne 0x4033cc
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x37c]
call fcn.0040151b
push 0x422a20
lea ecx, [esp + 0x1d4]
call fcn.004066f6
test eax, eax
jne 0x4033f7
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x2b8]
lea edi, [esp + 0x344]
call fcn.0040151b
push 0x422a24
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x1bc]
push eax
call fcn.0040456b
xor eax, eax
mov word [esp + 0x240], ax
mov eax, dword [esp + 0x1c0]
inc eax
lea ecx, [esp + 0x240]
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], ebx
call fcn.004066c3
push 0x422a2c
lea eax, [esp + 0x244]
push eax
call fcn.00404540
push ebx
lea eax, [esp + 0x1b4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x248]
call fcn.00405780
push 0x422a28
mov eax, edi
push eax
call fcn.00404540
mov esi, eax
lea eax, [esp + 0x194]
call fcn.00401302
push ebx
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1f4]
call fcn.00405780
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x248]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2b8]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x1d8]
call fcn.00401455
push 7
pop esi
jmp 0x4034f8
push 0x422a30
lea ecx, [esp + 0x1b4]
call fcn.004066f6
test eax, eax
jne 0x4034f8
mov byte [0x42836d], 1
lea eax, [esp + 0x1b0]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0040681d
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
and al, 6
movsx eax, al
neg eax
sbb eax, eax
not eax
test ecx, eax
lea ecx, [esp + 0x1b0]
jne 0x403328
push ebx
push 1
call fcn.00401455
lea ecx, [esp + 0x148]
call fcn.00404df7
lea eax, [esp + 0x148]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b548
pop ecx
push ebx
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x328]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x30c]
call fcn.00401455
lea ecx, [esp + 0xa8]
call fcn.00404673
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xac], vtable.std::ios_base.0
call fcn.0040b548
pop ecx
push ebx
push esi
lea ecx, [esp + 0x210]
call fcn.0040568a
push ebx
push esi
lea ecx, [esp + 0x2d4]
call fcn.00401455
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x402d65
push 0x2f
push 0x4268b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
call fcn.0040249b
cmp dword [esp + 0x200], 8
mov eax, dword [esp + 0x1ec]
jae 0x403610
lea eax, [esp + 0x1ec]
push eax
lea eax, [esp + 0x3ec]
push 0x422a48
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 1
call fcn.0040c593
cmp byte [0x42836d], 0
pop ecx
jne 0x4038a9
cmp byte [0x42836c], 0
jne 0x4038a9
lea eax, [esp + 0x18]
push eax
push 0x20019
xor edi, edi
push edi
push 0x19
push 0x426ba8
mov dword [esp + 0x2c], edi
call fcn.004020d4
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4036b8
push 0x32
push 0x426b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4035f3
push 0x12
xor eax, eax
push 0x426bdc
mov dword [esp + 0x1ec], 7
mov dword [esp + 0x1e8], edi
mov word [esp + 0x1d8], ax
call fcn.004020d4
push eax
lea esi, [esp + 0x228]
call fcn.004012ca
push 0x20
push 0x426c00
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
push eax
lea edx, [esp + 0x1d4]
lea ecx, [esp + 0x228]
call fcn.004069c8
push edi
push 1
lea ecx, [esp + 0x19c]
mov esi, eax
call fcn.00401455
push edi
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
cmp esi, edi
jne 0x403823
push 6
push 0x426c40
call fcn.004020d4
push eax
lea esi, [esp + 0x1b4]
call fcn.004012ca
cmp dword [esp + 0x1c4], 8
mov esi, dword [esp + 0x1b0]
mov edi, esi
jae 0x40380a
lea edi, [esp + 0x1b0]
mov eax, edi
cmp dword [esp + 0x1c4], 8
mov ecx, dword [esp + 0x1c0]
lea ebx, [eax + ecx*2]
jae 0x403798
lea esi, [esp + 0x1b0]
cmp esi, ebx
je 0x4037b3
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d47d
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x40379e
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x4037cb
lea eax, [esp + 0x1b0]
mov edi, dword [esp + 0x1c0]
push eax
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1d4]
call fcn.00406723
test eax, eax
jne 0x403811
push 0x32
push 0x426b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4035f3
mov eax, esi
jmp 0x40377d
push 0
push 1
lea ecx, [esp + 0x1b8]
call fcn.00401455
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1d8]
call fcn.00401455
cmp byte [0x42836c], 0
jne 0x4038a9
lea eax, [esp + 0x294]
push eax
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x360]
call fcn.0040114c
lea ecx, [esp + 0x224]
cmp dword [esp + 0x234], edi
ja 0x4035f3
push edi
push 1
call fcn.00401455
cmp byte [0x42836c], 0
jne 0x4038a9
mov ebx, dword [esp + 0x20]
call fcn.004076ba
test al, al
jne 0x4038a9
push 0x32
push 0x426b38
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4035f3
mov ecx, dword [esp + 0x20]
lea ebx, [esp + 0x390]
call fcn.004010a7
xor ebx, ebx
cmp dword [esp + 0x3a0], ebx
jbe 0x4039a3
xor eax, eax
mov word [esp + 0x240], ax
mov eax, dword [esp + 0x34c]
inc eax
lea ecx, [esp + 0x240]
mov dword [esp + 0x254], 7
mov dword [esp + 0x250], ebx
call fcn.004066c3
push ebx
lea eax, [esp + 0x340]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x248]
call fcn.00405780
push 0x422a50
mov eax, edi
push eax
call fcn.00404540
push ebx
lea eax, [esp + 0x378]
push eax
or eax, 0xffffffff
call fcn.00405780
mov esi, eax
lea eax, [esp + 0x224]
call fcn.00401302
push ebx
push 1
mov ecx, edi
call fcn.00401455
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x194]
push eax
call fcn.004074ff
sub esp, 0x1c
lea ecx, [esp + 0x240]
mov eax, esp
push ecx
call fcn.00404518
sub esp, 0x1c
lea ecx, [esp + 0x1cc]
mov eax, esp
push ecx
call fcn.00404518
call fcn.004025a2
push ebx
push 1
lea ecx, [esp + 0x19c]
mov byte [esp + 0x1f], 1
call fcn.00401455
push ebx
push 1
lea ecx, [esp + 0x22c]
call fcn.00401455
push 0x422a54
lea esi, [esp + 0x27c]
call fcn.004012ca
lea eax, [esp + 0xbe8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4039fc
lea eax, [esp + 0xbe8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov esi, eax
lea edi, [esp + 0x278]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
lea edx, [esp + 0x278]
lea ecx, [esp + 0x194]
call fcn.00407a8b
mov esi, eax
lea edi, [esp + 0x278]
call fcn.00401370
push ebx
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
cmp dword [esp + 0x28c], 8
mov eax, dword [esp + 0x278]
jae 0x403a3f
mov eax, edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403aa6
push 0x17
push 0x426918
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 0x3e8
push 0x1b8
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x25
push 0x426948
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402dd3
lea edx, [esp + 0x278]
lea ecx, [esp + 0x25c]
call fcn.00407d13
cmp dword [esp + 0x270], 8
mov eax, dword [esp + 0x25c]
jae 0x403ad1
lea eax, [esp + 0x25c]
push eax
push 0x11
push 0x426894
call fcn.004020d4
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.00401455
cmp byte [esp + 0x17], 0
mov dword [esp + 0x2c], 0x1b70b
je 0x403b31
inc esi
mov dword [esp + 0x2c], 0x318fa
push dword [esp + 0x2c]
xor ebx, ebx
call fcn.0040b33d
pop ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
cmp esi, 0x12
jge 0x403ba4
push 0
call fcn.0040b33d
and dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
pop ecx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x69
push eax
push dword [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.0040272c
test al, al
je 0x403bd5
push 0x21
pop eax
cmp dword [esp + 0x1c], eax
jle 0x403b98
mov ecx, dword [esp + 0x18]
mov cl, byte [eax + ecx]
mov edx, dword [esp + 0x10]
mov byte [edx + ebx], cl
inc ebx
inc eax
cmp eax, dword [esp + 0x1c]
jl 0x403b82
add dword [esp + 0x28], 2
cmp dword [esp + 0x28], 0x12
jl 0x403b4a
lea esi, [esp + 0x2c]
lea ecx, [esp + 0x10]
call fcn.0040278c
test al, al
jne 0x403bf5
push 0x2f
push 0x4268b8
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ecx, esi
jmp 0x4035f3
push 0x25
push 0x426948
call fcn.004020d4
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov eax, esi
jmp 0x402dd3
cmp dword [esp + 0x270], 8
mov eax, dword [esp + 0x25c]
jae 0x403c0d
lea eax, [esp + 0x25c]
xor ebx, ebx
push ebx
push 0x100
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x403cc4
cmp dword [esp + 0x270], 8
mov eax, dword [esp + 0x25c]
jae 0x403c48
lea eax, [esp + 0x25c]
push eax
push 0x17
push 0x426994
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401455
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x264]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x280]
call fcn.00401455
push esi
push edi
lea ecx, [esp + 0x398]
call fcn.00401455
push 0xd
jmp 0x402f9f
push ebx
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
push dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403ce4
mov edi, esi
call fcn.00402538
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call fcn.0040da12
cmp dword [esp + 0x274], 8
mov eax, dword [esp + 0x260]
pop ecx
jae 0x403d0d
lea eax, [esp + 0x25c]
push eax
push 0x14
push 0x4269c4
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
push 8
push 0x4269ec
call fcn.004020d4
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403d5f
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x1f0]
call fcn.004058b5
cmp byte [0x42836c], 0
je 0x403de9
lea eax, [esp + 0x3ac]
push eax
lea eax, [esp + 0x20c]
call fcn.00404518
push 0x422a58
push 3
pop ebx
lea eax, [esp + 0x20c]
call fcn.004058b5
push str.log.txt
lea eax, [esp + 0x20c]
push eax
call fcn.00404540
push 0
lea eax, [esp + 0x20c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1f4]
call fcn.00405780
push 0
push 1
lea ecx, [esp + 0x210]
call fcn.00401455
push str.__v_
lea eax, [esp + 0x1f0]
push eax
call fcn.00404540
push dword [esp + 0x24]
lea eax, [esp + 0x198]
call fcn.00404518
push 0
lea eax, [esp + 0x198]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x1f4]
call fcn.00405780
push 0
push 1
lea ecx, [esp + 0x19c]
call fcn.00401455
push 0x422a80
mov eax, edi
push eax
call fcn.00404540
mov eax, edi
push eax
lea edx, [esp + 0x260]
lea ecx, [esp + 0x27c]
call fcn.004021e9
test al, al
je 0x403eae
push 0x422a84
push 0x17
push 0x4269fc
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x19c]
call fcn.00401455
jmp 0x403efc
push 0x422a88
push 0x10
push 0x426a2c
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x42836c], bl
je 0x403f5e
cmp dword [esp + 0x28c], 8
mov eax, dword [esp + 0x278]
jae 0x403f1c
lea eax, [esp + 0x278]
push eax
push 0x2d
push 0x426a78
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x426668
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403fbd
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x278]
push eax
call fcn.00407b68
push 0x422a8c
push 0x16
push 0x426a4c
call fcn.004020d4
push eax
lea eax, [esp + 0x3f0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e8]
push eax
lea esi, [esp + 0x198]
call fcn.004012ca
mov ebx, esi
call fcn.00402120
push 0
push 1
mov ecx, esi
call fcn.00401455
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x264]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x280]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x398]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x29c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x360]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x3b4]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x2f0]
call fcn.0040568a
push ebx
push esi
lea ecx, [esp + 0x37c]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x344]
call fcn.00401455
push ebx
push esi
lea ecx, [esp + 0x1f4]
call fcn.00401455
xor eax, eax
mov ecx, dword [esp + 0x812c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bf43
mov esp, ebp
pop ebp
ret 0x10