Function at 0x402912
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8114
call fcn.0041ade0
mov eax, dword [0x4255d4]
xor eax, esp
mov dword [esp + 0x8110], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ecx, ecx
push 7
pop esi
xor ebx, ebx
mov word [esp + 0x1fc], cx
mov word [esp + 0x34c], cx
mov word [esp + 0x368], cx
push eax
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x214], esi
mov dword [esp + 0x210], ebx
mov dword [esp + 0x364], esi
mov dword [esp + 0x360], ebx
mov dword [esp + 0x380], esi
mov dword [esp + 0x37c], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x2bc], 0xf
mov dword [esp + 0x2b8], ebx
mov byte [esp + 0x2a8], bl
call fcn.004054a9
cmp dword [esp + 0x2b8], 0x10
mov ecx, dword [esp + 0x2a4]
mov eax, ecx
jae 0x4029c3
lea eax, [esp + 0x2a4]
add eax, dword [esp + 0x2b4]
cmp dword [esp + 0x2b8], 0x10
jae 0x4029db
lea ecx, [esp + 0x2a4]
push dword [esp + 0x28]
xor edx, edx
push eax
push ecx
lea eax, [esp + 0x294]
push eax
mov dword [esp + 0x2ac], esi
mov dword [esp + 0x2a8], ebx
mov word [esp + 0x298], dx
call fcn.0040661f
lea esi, [esp + 0x288]
lea edi, [esp + 0x1fc]
call fcn.00401364
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 5
push 0x4267c8
call fcn.004021f7
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x402a34
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
mov esi, eax
cmp esi, 0xffffffff
setne al
mov byte [0x47694d], al
cmp al, bl
je 0x402af1
lea ecx, [esp + 0x188]
call fcn.00402464
mov ebx, eax
call fcn.0040228f
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 0x422870
push 5
push esi
lea eax, [esp + 0x208]
push eax
call fcn.00404423
push 0x40000
push 3
push 0x426690
call fcn.004021f7
push eax
push 7
push 0x426794
call fcn.004021f7
push eax
call fcn.004018cd
push 0x11
push 0x4267a4
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
xor ebx, ebx
push 0xd8
call fcn.0040c223
pop ecx
cmp eax, ebx
je 0x402b0d
call fcn.00406a2e
mov ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x402b11
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x384]
call fcn.0040711a
lea eax, [ebx + 0xbc]
push eax
lea eax, [esp + 0x334]
call fcn.004043d0
lea eax, [ebx + 0xa0]
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x270]
call fcn.004043d0
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp dword [esp + 0x344], 8
mov eax, dword [esp + 0x330]
jae 0x402b85
lea eax, [esp + 0x330]
push eax
push 0x10
push 0x426818
call fcn.004021f7
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x47694d], 0
mov byte [esp + 0x13], 1
je 0x402c48
cmp dword [esp + 0x20c], 0
jbe 0x402cc0
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
mov byte [esp + 0x13], 0
jae 0x402c05
lea eax, [esp + 0x1fc]
push eax
push 0x20
push 0x426838
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
jmp 0x402cc0
push 2
pop esi
push esi
push 0x4267d4
call fcn.004021f7
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c5b
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
push esi
push 0x4267d8
mov dword [esp + 0x20], eax
call fcn.004021f7
mov ecx, eax
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, esi
test bx, bx
jne 0x402c8d
sub ecx, edx
sar ecx, 1
push ecx
push eax
xor eax, eax
lea ecx, [esp + 0x204]
call fcn.004013b3
cmp dword [esp + 0x18], 0xffffffff
je 0x402cbb
mov byte [esp + 0x13], bl
cmp eax, 0xffffffff
jne 0x402cc0
mov byte [esp + 0x13], 1
push 1
call fcn.0040c223
pop ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3bc]
call fcn.00401225
cmp dword [esp + 0x3cc], 0
jbe 0x402ce7
mov byte [esp + 0x1f], 1
cmp byte [esp + 0x13], 0
je 0x403494
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402d0a
lea eax, [esp + 0x26c]
push eax
push 0x13
push 0x426878
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
xor ebx, ebx
push ebx
push 1
mov ecx, esi
call fcn.00401451
push 0x422874
lea esi, [esp + 0x28c]
call fcn.004012da
push ebx
push 0x421002
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a4], 0xf
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x190], bl
call fcn.00405c7e
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402da0
lea eax, [esp + 0x26c]
push 0x80
push 3
push 3
push 0x80000000
push eax
call fcn.00401900
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x402eb9
cmp dword [esp + 0x280], 8
mov eax, dword [esp + 0x26c]
jae 0x402dd8
lea eax, [esp + 0x26c]
push eax
push 0x17
push 0x4269cc
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
mov ecx, ebx
call fcn.00401451
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
lea ecx, [esp + 0x190]
call fcn.00405542
push esi
push edi
lea ecx, [esp + 0x290]
call fcn.00401451
push 0x1f
pop ebx
push esi
push edi
lea ecx, [esp + 0x3c4]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x274]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x338]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x38c]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x2ac]
call fcn.00405542
push esi
push edi
lea ecx, [esp + 0x370]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x354]
call fcn.00401451
push esi
push edi
lea ecx, [esp + 0x204]
call fcn.00401451
mov eax, ebx
jmp 0x403f03
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 + 0x26c]
push eax
lea edi, [esp + 0x34]
call fcn.00404453
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x3c], ebx
jne 0x403507
lea ecx, [esp + ecx + 0x30]
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 0x402f11
push ebx
call fcn.00402116
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 + 0x48]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.00404055
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [esp + eax + 0x3c], 6
jne 0x402f5d
mov eax, dword [esp + eax + 0x68]
mov edx, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x1d0]
push ecx
mov ecx, eax
call dword [edx + 0x28]
lea eax, [esp + 0xde0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00403f7b
xor eax, eax
mov word [esp + 0x1e0], ax
mov eax, 0x3999
lea ecx, [esp + 0xde0]
lea edx, [esp + 0x1e0]
mov dword [esp + 0x1f4], 7
mov dword [esp + 0x1f0], ebx
call fcn.0040149a
push ebx
lea eax, [esp + 0x1e4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x290]
call fcn.00405638
lea eax, [esp + 0x48]
call fcn.00405b1a
test eax, eax
jne 0x402ff2
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x30]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x402fe1
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x402ff2
push ebx
call fcn.00402116
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 0x422878
lea esi, [esp + 0x2e0]
call fcn.004012da
push 0x42287c
lea esi, [esp + 0x2fc]
call fcn.004012da
push 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 8
pop esi
push dword [esp + 0x28]
mov edi, dword [esp + 0x18]
xor eax, eax
mov word [esp + 0x238], ax
lea eax, [edi + 0x426e9e]
push eax
dec eax
push eax
lea eax, [esp + 0x240]
push eax
mov dword [esp + 0x258], esi
mov dword [esp + 0x254], ebx
call fcn.0040667a
push dword [esp + 0x28]
xor eax, eax
mov word [esp + 0x1e4], ax
lea eax, [edi + 0x426f2e]
push eax
lea eax, [edi + 0x426f2d]
push eax
lea eax, [esp + 0x1ec]
push eax
mov dword [esp + 0x204], esi
mov dword [esp + 0x200], ebx
call fcn.0040667a
push ebx
lea eax, [esp + 0x238]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x2e4]
call fcn.00405638
push ebx
lea eax, [esp + 0x1e4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x300]
call fcn.00405638
push ebx
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push ebx
push 1
lea ecx, [esp + 0x23c]
call fcn.00401451
add dword [esp + 0x14], 2
dec dword [esp + 0x18]
jne 0x403032
cmp dword [esp + 0x2f0], 8
mov eax, dword [esp + 0x2dc]
jae 0x403114
lea eax, [esp + 0x2dc]
push dword [esp + 0x2ec]
lea ecx, [esp + 0x28c]
push eax
xor eax, eax
call fcn.004013b3
cmp dword [esp + 0x30c], 8
mov edi, eax
mov eax, dword [esp + 0x2f8]
jae 0x403144
lea eax, [esp + 0x2f8]
push dword [esp + 0x308]
lea ecx, [esp + 0x28c]
push eax
xor eax, eax
call fcn.004013b3
cmp edi, 0xffffffff
je 0x40342e
cmp eax, 0xffffffff
je 0x40342e
sub eax, dword [esp + 0x2ec]
xor ecx, ecx
sub eax, edi
push eax
mov eax, dword [esp + 0x30c]
add eax, edi
push eax
lea eax, [esp + 0x290]
lea edi, [esp + 0x1ac]
mov dword [esp + 0x1c0], esi
mov dword [esp + 0x1bc], ebx
mov word [esp + 0x1ac], cx
call fcn.00401517
mov eax, edi
push eax
lea edi, [esp + 0xec]
call fcn.00404c31
xor eax, eax
mov dword [esp + 0x1d4], esi
mov dword [esp + 0x1d0], ebx
mov word [esp + 0x1c0], ax
jmp 0x4033b9
push 1
push str.:eu___
xor eax, eax
call fcn.004013b3
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40339d
push dword [esp + 0x14]
xor eax, eax
mov word [esp + 0x1e4], ax
push ebx
lea eax, [esp + 0x1c8]
lea edi, [esp + 0x1e8]
mov dword [esp + 0x1fc], esi
mov dword [esp + 0x1f8], ebx
call fcn.00401517
xor eax, eax
mov word [esp + 0x234], ax
mov eax, dword [esp + 0x14]
inc eax
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1c8]
lea edi, [esp + 0x23c]
mov dword [esp + 0x250], esi
mov dword [esp + 0x24c], ebx
call fcn.00401517
push 0x422884
lea ecx, [esp + 0x1e4]
call fcn.004065ae
test eax, eax
jne 0x40327b
push 0xffffffffffffffff
mov eax, edi
push ebx
lea edi, [esp + 0x370]
call fcn.00401517
push 0x422888
lea ecx, [esp + 0x1e4]
call fcn.004065ae
test eax, eax
jne 0x4032a6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x23c]
lea edi, [esp + 0x354]
call fcn.00401517
push 0x42288c
push 1
push dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
call fcn.00404423
xor eax, eax
mov word [esp + 0x314], ax
mov eax, dword [esp + 0x1d0]
push 7
pop esi
inc eax
lea ecx, [esp + 0x314]
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
call fcn.0040657b
push 0x422894
lea eax, [esp + 0x318]
push eax
call fcn.004043f8
push ebx
lea eax, [esp + 0x1c4]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x31c]
call fcn.00405638
push 0x422890
mov eax, edi
push eax
call fcn.004043f8
mov dword [esp + 0x2d4], esi
xor ecx, ecx
mov esi, eax
lea edi, [esp + 0x2c0]
mov dword [esp + 0x2d0], ebx
mov word [esp + 0x2c0], cx
call fcn.00401364
mov eax, edi
push ebx
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.00405638
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x2c8]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x31c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x23c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x1e8]
call fcn.00401451
push 7
pop esi
jmp 0x4033b9
push 0x422898
lea ecx, [esp + 0x1c4]
call fcn.004065ae
test eax, eax
jne 0x4033b9
mov byte [0x47694e], 1
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0xec]
push eax
call fcn.004066d5
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 + 0x1c0]
jne 0x4031d7
push ebx
push 1
call fcn.00401451
lea ecx, [esp + 0x140]
call fcn.00404caf
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b1df
pop ecx
push ebx
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x300]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x2e4]
call fcn.00401451
lea ecx, [esp + 0xa0]
call fcn.0040452b
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0040b1df
pop ecx
push ebx
push esi
lea ecx, [esp + 0x190]
call fcn.00405542
push ebx
push esi
lea ecx, [esp + 0x290]
call fcn.00401451
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
cmp dword [esp + 0x20c], 0
jne 0x403527
push 0x4228ac
push 0x16
push 0x4268a0
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x2f
push 0x4268f0
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
call fcn.004024ec
push 0x2f
push 0x4268f0
call fcn.004021f7
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ecx, esi
call fcn.00402360
cmp dword [esp + 0x210], 8
mov eax, dword [esp + 0x1fc]
jae 0x40353f
lea eax, [esp + 0x1fc]
push eax
push 2
push 0x4265cc
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [0x47694e], 0
jne 0x4037d7
cmp byte [0x47694d], 0
jne 0x4037d7
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x338]
call fcn.004010a7
xor edi, edi
cmp dword [esp + 0x1b4], edi
jbe 0x4035cd
lea ecx, [esp + 0x1a4]
jmp 0x403522
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
push 0x19
push 0x426be0
mov dword [esp + 0x2c], edi
call fcn.004021f7
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403618
push 0x32
push 0x426b70
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x403522
push 0x12
xor eax, eax
push 0x426c14
mov dword [esp + 0x1fc], 7
mov dword [esp + 0x1f8], edi
mov word [esp + 0x1e8], ax
call fcn.004021f7
push eax
lea esi, [esp + 0x238]
call fcn.004012da
push 0x20
push 0x426c38
call fcn.004021f7
push eax
lea esi, [esp + 0x2c4]
call fcn.004012da
mov eax, esi
push eax
lea edx, [esp + 0x1e4]
lea ecx, [esp + 0x238]
call fcn.00406880
push edi
push 1
lea ecx, [esp + 0x2c8]
mov esi, eax
call fcn.00401451
push edi
push 1
lea ecx, [esp + 0x23c]
call fcn.00401451
cmp esi, edi
jne 0x403783
push 6
push 0x426c78
call fcn.004021f7
push eax
lea esi, [esp + 0x1c4]
call fcn.004012da
cmp dword [esp + 0x1d4], 8
mov esi, dword [esp + 0x1c0]
mov edi, esi
jae 0x40376a
lea edi, [esp + 0x1c0]
mov eax, edi
cmp dword [esp + 0x1d4], 8
mov ecx, dword [esp + 0x1d0]
lea ebx, [eax + ecx*2]
jae 0x4036f8
lea esi, [esp + 0x1c0]
cmp esi, ebx
je 0x403713
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.0040d10d
mov word [edi + esi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x4036fe
cmp dword [esp + 0x1d4], 8
mov eax, dword [esp + 0x1c0]
jae 0x40372b
lea eax, [esp + 0x1c0]
mov edi, dword [esp + 0x1d0]
push eax
mov eax, dword [esp + 0x1f4]
lea ecx, [esp + 0x1e4]
call fcn.004065db
test eax, eax
jne 0x403771
push 0x32
push 0x426b70
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x403522
mov eax, esi
jmp 0x4036dd
push 0
push 1
lea ecx, [esp + 0x1c8]
call fcn.00401451
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x1e8]
call fcn.00401451
push edi
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
cmp byte [0x47694d], 0
jne 0x4037d7
mov ebx, dword [esp + 0x24]
call fcn.0040728f
test al, al
jne 0x4037d7
push 0x32
push 0x426b70
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x403522
push 0x4228b0
lea esi, [esp + 0x254]
call fcn.004012da
lea eax, [esp + 0xbd8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403831
lea eax, [esp + 0xbd8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov esi, eax
lea edi, [esp + 0x250]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
lea edx, [esp + 0x250]
lea ecx, [esp + 0x1a4]
call fcn.004076b6
mov esi, eax
lea edi, [esp + 0x250]
call fcn.00401364
push 0
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
cmp dword [esp + 0x264], 8
mov esi, dword [esp + 0x250]
jae 0x403875
mov esi, edi
push 0x10
push 0x4274cc
call fcn.00401860
push eax
push 8
push 0x4271ac
call fcn.00401814
push eax
call fcn.004018a6
push 0
push esi
call eax
test eax, eax
jne 0x4038e8
push 0x17
push 0x426950
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
push 0x25
push 0x426980
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov eax, esi
jmp 0x403502
lea edx, [esp + 0x250]
lea ecx, [esp + 0x218]
call fcn.00407996
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x403913
lea eax, [esp + 0x218]
push eax
push 0x11
push 0x4268cc
call fcn.004021f7
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
cmp byte [esp + 0x1f], 0
je 0x4039a7
mov eax, 0x31a52
push eax
mov dword [esp + 0x1c], eax
call fcn.0040afd4
xor esi, esi
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x475340]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
push ebx
push dword [esi + 0x475390]
push eax
call fcn.0040e7c0
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x4c
jl 0x40397b
jmp 0x4039eb
mov eax, 0x1c319
push eax
mov dword [esp + 0x1c], eax
call fcn.0040afd4
xor esi, esi
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi + 0x426d6c]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
push ebx
push dword [esi + 0x426e04]
push eax
call fcn.0040e7c0
add dword [esp + 0x2c], ebx
add esi, 4
add esp, 0xc
cmp esi, 0x2c
jl 0x4039c1
lea esi, [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.00402519
test al, al
jne 0x403a1c
push 0x2f
push 0x4268f0
call fcn.004021f7
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ecx, esi
jmp 0x403522
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x403a34
lea eax, [esp + 0x218]
push 0x100
push 2
push 1
push 0x40000000
push eax
call fcn.00401900
mov esi, eax
test esi, esi
jne 0x403adb
cmp dword [esp + 0x22c], 8
mov eax, dword [esp + 0x218]
jae 0x403a6a
lea eax, [esp + 0x218]
push eax
push 0x17
push 0x4269cc
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
xor esi, esi
push esi
push 1
mov ecx, ebx
call fcn.00401451
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [esp + 0x220]
call fcn.00401451
push esi
push 1
lea ecx, [esp + 0x258]
call fcn.00401451
xor edi, edi
push 0xd
inc edi
jmp 0x402e41
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403afc
mov edi, esi
call fcn.004023fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call fcn.0040d6a2
cmp dword [esp + 0x230], 8
mov eax, dword [esp + 0x21c]
pop ecx
jae 0x403b25
lea eax, [esp + 0x218]
push eax
push 0x14
push 0x4269fc
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
push 8
push 0x426a24
call fcn.004021f7
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x403b77
sub ecx, edx
sar ecx, 1
push eax
mov ebx, ecx
lea eax, [esp + 0x200]
call fcn.0040587b
cmp byte [0x47694d], 0
mov ebx, 0x4265c8
je 0x403c5f
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x18c]
call fcn.004043d0
push 3
push 0x4267dc
call fcn.004021f7
push eax
lea esi, [esp + 0x1a8]
call fcn.004012da
push 0x4228b4
mov eax, esi
push eax
call fcn.004043f8
push 1
push ebx
call fcn.004021f7
push eax
mov eax, esi
push eax
call fcn.004043f8
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x190]
call fcn.0040576d
push 7
push 0x4265d8
call fcn.004021f7
push eax
mov eax, edi
push eax
call fcn.004043f8
push 1
push ebx
call fcn.004021f7
push eax
mov eax, edi
push eax
call fcn.004043f8
xor esi, esi
mov eax, edi
push esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.00405638
push esi
push 1
lea ecx, [esp + 0x1ac]
call fcn.00401451
push esi
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 3
push 0x4267e4
call fcn.004021f7
push eax
lea esi, [esp + 0x3a4]
call fcn.004012da
push 0x4228b8
mov eax, esi
push eax
call fcn.004043f8
push 0
mov eax, esi
push eax
or eax, 0xffffffff
lea edi, [esp + 0x204]
call fcn.00405638
push 1
push ebx
call fcn.004021f7
push eax
mov eax, edi
push eax
call fcn.004043f8
push dword [esp + 0x28]
lea eax, [esp + 0x18c]
call fcn.004043d0
push 0
lea eax, [esp + 0x18c]
push eax
or eax, 0xffffffff
call fcn.00405638
push 0
push 1
lea ecx, [esp + 0x190]
call fcn.00401451
push 1
push ebx
call fcn.004021f7
push eax
mov eax, edi
push eax
call fcn.004043f8
mov eax, edi
push eax
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x254]
call fcn.004026df
test al, al
je 0x403d5a
push 0x4228bc
push 0x17
push 0x426a34
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x190]
call fcn.00401451
jmp 0x403da8
push 0x4228c0
push 0x10
push 0x426a64
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
xor esi, esi
xor ebx, ebx
inc esi
cmp byte [0x47694d], bl
je 0x403e08
cmp dword [esp + 0x264], 8
mov eax, dword [esp + 0x250]
jae 0x403dc8
lea eax, [esp + 0x250]
push eax
push 0x2d
push 0x426ab0
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40000
push 3
push 0x426690
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call fcn.004018cd
jmp 0x403e67
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x250]
push eax
call fcn.0040779e
push 0x4228c4
push 0x16
push 0x426a84
call fcn.004021f7
push eax
lea eax, [esp + 0x3e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push eax
lea esi, [esp + 0x18c]
call fcn.004012da
mov ebx, esi
call fcn.0040228f
push 0
push 1
mov ecx, esi
call fcn.00401451
xor esi, esi
xor ebx, ebx
inc esi
push ebx
push esi
lea ecx, [esp + 0x3a8]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x220]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x258]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x3c4]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x274]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x338]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x38c]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x2ac]
call fcn.00405542
push ebx
push esi
lea ecx, [esp + 0x370]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x354]
call fcn.00401451
push ebx
push esi
lea ecx, [esp + 0x204]
call fcn.00401451
xor eax, eax
mov ecx, dword [esp + 0x811c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040bbda
mov esp, ebp
pop ebp
ret 0x10