Function at 0x40ba60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov dword [ebp - 0xd0], 0x81
mov dword [ebp - 8], 0xc5
mov dword [ebp - 0x28], 0xca
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x24], 0x1b9
mov dword [ebp - 0x38], 0x28f
mov dword [ebp - 0x54], 0x252
mov dword [ebp - 0x2c], 0x26a
mov dword [ebp - 0x40], 0x3d1
mov dword [ebp - 0x3c], 5
mov dword [ebp - 4], 0x87
mov dword [ebp - 0x20], 0x2a5
mov dword [ebp - 0x1c], 0x3be
mov dword [ebp - 0x14], 0x2a8
mov dword [ebp - 0xc], 0xa7
mov dword [ebp - 0x50], 0x277
mov dword [ebp - 0x68], 0xcb
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0x30], 0x311
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x64], 0x3e0
mov dword [ebp - 0x44], 0x5e
mov eax, dword [0x50cf90]
add eax, 0x161
push eax
mov ecx, dword [0x50cf7c]
sub ecx, 0x86
push ecx
mov edx, dword [0x50cfd4]
add edx, 0x2ef
push edx
call fcn.0042bb60
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, dword [0x50cfa0]
mov dword [ebp - 0xc8], eax
mov ecx, dword [0x50cfd4]
mov dword [ebp - 0xcc], ecx
mov edx, dword [0x50cfa0]
sub edx, 1
mov dword [0x50cfa0], edx
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0xcc]
jge 0x40bbb2
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x50cfa0]
jge 0x40bb88
mov dword [ebp - 0x70], 1
jmp 0x40bb8f
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x24]
and ecx, dword [ebp - 0x70]
je 0x40bbb2
mov edx, dword [0x50cfa0]
sub edx, 1
mov dword [0x50cfa0], edx
mov eax, dword [0x50cf9c]
sub eax, 0x170
push eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x31f
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x2e4
push edx
mov eax, dword [0x50cf84]
add eax, 0x146
push eax
call fcn.00420920
add esp, 0x10
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [0x50cf8c]
cmp edx, dword [ebp - 0xc]
jge 0x40bc04
mov dword [ebp - 0x74], 1
jmp 0x40bc0b
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jge 0x40bc1c
mov dword [ebp - 0x78], 1
jmp 0x40bc23
mov dword [ebp - 0x78], 0
mov ecx, dword [0x50cf9c]
mov dword [ebp - 0xd4], ecx
mov edx, dword [0x50cfa0]
mov dword [ebp - 0xd8], edx
mov eax, dword [0x50cfa0]
add eax, 1
mov dword [0x50cfa0], eax
mov ecx, dword [ebp - 0xd4]
cmp ecx, dword [ebp - 0xd8]
jge 0x40bc5f
mov dword [ebp - 0x7c], 1
jmp 0x40bc66
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x74]
or edx, dword [ebp - 0x78]
or edx, dword [ebp - 0x7c]
je 0x40bc7a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 0
jmp 0x40bc8c
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x34]
sub edx, 0x186a4
cmp dword [ebp - 0x48], edx
jge 0x40bcc7
push 0xb977
push 0x299f
push 0x3a88
push 0x140f1
push 0x1771d
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x40bc83
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x34]
jge 0x40bcd8
mov dword [ebp - 0x80], 1
jmp 0x40bcdf
mov dword [ebp - 0x80], 0
mov edx, dword [0x50cfa4]
mov dword [ebp - 0xdc], edx
mov eax, dword [0x50cf88]
mov dword [ebp - 0xe0], eax
mov ecx, dword [0x50cfa4]
add ecx, 1
mov dword [0x50cfa4], ecx
mov edx, dword [ebp - 0xdc]
cmp edx, dword [ebp - 0xe0]
jge 0x40bd1f
mov dword [ebp - 0x84], 1
jmp 0x40bd29
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x10]
jge 0x40bd46
mov dword [ebp - 0x88], 1
jmp 0x40bd50
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x80]
and edx, dword [ebp - 0x84]
or edx, dword [ebp - 0x88]
je 0x40bd6e
mov eax, dword [0x50cf80]
sub eax, 1
mov dword [0x50cf80], eax
mov dword [ebp - 0x4c], 0
jmp 0x40bd80
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [0x50cf80]
sub edx, 0x25c
cmp dword [ebp - 0x4c], edx
jge 0x40bd9c
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x40bd77
mov ecx, dword [ebp - 0x2c]
imul ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40be7c
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0xc]
jge 0x40bdbf
mov dword [ebp - 0x8c], 1
jmp 0x40bdc9
mov dword [ebp - 0x8c], 0
mov eax, dword [0x50cf84]
cmp eax, dword [0x50cf9c]
jge 0x40bde2
mov dword [ebp - 0x90], 1
jmp 0x40bdec
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x8c]
or ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x50]
imul edx, dword [0x50cf80]
or ecx, edx
je 0x40be7c
mov eax, dword [ebp - 0x14]
add eax, dword [0x50cf94]
cmp eax, dword [ebp - 0x50]
jge 0x40be20
mov dword [ebp - 0x94], 1
jmp 0x40be2a
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jge 0x40be50
mov dword [ebp - 0x98], 1
jmp 0x40be5a
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x94]
and ecx, dword [ebp - 0x98]
mov edx, dword [0x50b234]
or edx, dword [ebp - 0x10]
or ecx, edx
je 0x40be7c
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
or ecx, 0x5c4e
xor ecx, 0xdd07
mov edx, 0xb7fb
sub edx, dword [ebp + 0x14]
xor edx, 0x5b5a
mov byte [edx + str.PbaVGCNOffKGzkL], cl
mov eax, dword [0x50cf84]
sub eax, 1
mov dword [0x50cf84], eax
mov ecx, dword [0x50cf90]
add ecx, 0x6d
push ecx
mov edx, dword [0x50cfd4]
add edx, 0x20e
push edx
mov eax, dword [ebp - 8]
add eax, 0x2ad
push eax
call fcn.004207e0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
sub ecx, 0x554
xor ecx, 0x946e
mov edx, dword [ebp + 0x10]
and edx, 0x35d3
xor edx, 0x11a
mov byte [edx + str.PbaVGCNOffKGzkL], cl
mov eax, dword [ebp - 0x18]
add eax, 0x2b6
push eax
mov ecx, dword [ebp - 0x40]
sub ecx, 0x3a1
push ecx
mov edx, dword [0x50cfd4]
add edx, 0x1f9
push edx
mov eax, dword [ebp - 0x28]
add eax, 0x287
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x233
push ecx
mov edx, dword [0x50cfd4]
add edx, 0xae
push edx
call fcn.004181c0
add esp, 0x18
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x68]
jge 0x40bf57
mov ecx, dword [0x50cf94]
sub ecx, 1
mov dword [0x50cf94], ecx
mov edx, dword [ebp + 0x14]
or edx, 0xbe2f
xor edx, 0x46749be8
mov eax, dword [ebp + 0x1c]
or eax, 0x9e8e
xor eax, 0x153f
xor eax, 0xcb81
mov dword [eax + str.PbaVGCNOffKGzkL], edx
mov ecx, dword [0x50cf80]
sub ecx, 0x181
push ecx
mov edx, dword [0x50cf8c]
add edx, 0x264
push edx
call fcn.0040d520
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xe4], eax
mov ecx, dword [0x50cf7c]
mov dword [ebp - 0xe8], ecx
mov edx, dword [0x50cf7c]
add edx, 1
mov dword [0x50cf7c], edx
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xe8]
jge 0x40bfe1
mov ecx, dword [0x50cf9c]
sub ecx, 1
mov dword [0x50cf9c], ecx
mov edx, dword [ebp + 8]
and edx, 0xc0c
xor edx, 0x89b9
xor edx, 0x81ed
mov eax, dword [ebp + 0x14]
xor eax, 0xefc2
xor eax, 0xb367
mov byte [eax + str.PbaVGCNOffKGzkL], dl
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x20]
jge 0x40c01d
mov dword [ebp - 0xa0], 1
jmp 0x40c027
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jge 0x40c03b
mov dword [ebp - 0x9c], 1
jmp 0x40c045
mov dword [ebp - 0x9c], 0
mov eax, dword [0x50cf7c]
or eax, dword [0x50cf90]
and eax, dword [ebp - 0x9c]
or eax, dword [ebp - 0xa0]
mov dword [ebp - 0xec], eax
mov ecx, dword [0x50cf90]
add ecx, 1
mov dword [0x50cf90], ecx
cmp dword [ebp - 0xec], 0
je 0x40c11d
mov edx, dword [0x50b234]
add edx, 1
mov dword [0x50b234], edx
mov eax, dword [ebp - 8]
cmp eax, dword [0x50b234]
jge 0x40c11d
mov ecx, dword [0x50cfa4]
sub ecx, 1
mov dword [0x50cfa4], ecx
mov edx, dword [0x50cfa4]
imul edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x30]
jge 0x40c0c6
mov dword [ebp - 0xa4], 1
jmp 0x40c0d0
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x38]
jge 0x40c0e4
mov dword [ebp - 0xa8], 1
jmp 0x40c0ee
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0xa4]
or ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x28]
and edx, dword [ebp - 4]
or ecx, edx
je 0x40c11d
mov eax, dword [0x50cfd4]
xor eax, dword [ebp - 0x44]
je 0x40c11d
mov ecx, dword [0x50cfa0]
sub ecx, 1
mov dword [0x50cfa0], ecx
mov edx, dword [ebp + 0x1c]
add edx, 0x41b9
or edx, 0xd292
xor edx, 0xdb19
mov eax, dword [ebp + 8]
xor eax, 0xb2d0
xor eax, 0x187e
mov byte [eax + str.PbaVGCNOffKGzkL], dl
mov ecx, dword [0x50cf84]
sub ecx, 0xa
push ecx
mov edx, dword [ebp - 0x1c]
sub edx, 0x2d8
push edx
mov eax, dword [ebp - 0x20]
sub eax, 8
push eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x10e
push ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x19d
push edx
mov eax, dword [ebp - 0x54]
sub eax, 0x4a
push eax
call fcn.00418cb0
add esp, 0x18
mov dword [ebp - 0x58], 0
jmp 0x40c195
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [0x50cfa0]
sub edx, 0x187b7
cmp dword [ebp - 0x58], edx
jge 0x40c1c4
push 0x8ddf
push 0xcd38
call dword [sym.imp.USER32.dll_SetWindowPos]
add esp, 8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40c18c
mov dword [ebp - 0x5c], 0
jmp 0x40c1d6
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x2c]
sub edx, 0x269
cmp dword [ebp - 0x5c], edx
jge 0x40c1f3
mov eax, dword [0x50b234]
add eax, 1
mov dword [0x50b234], eax
jmp 0x40c1cd
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, 0x4870
sub edx, dword [ebp + 0x10]
sub edx, 0x9c2f
xor edx, 0xac9a074f
mov eax, 0x18fe
sub eax, dword [ebp + 0x1c]
xor eax, 0xffffc0ce
mov dword [eax + str.PbaVGCNOffKGzkL], edx
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x287
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x62
push edx
mov eax, dword [0x50cf8c]
add eax, 0x14d
push eax
mov ecx, dword [0x50cf9c]
sub ecx, 0x28b
push ecx
mov edx, dword [0x50cfd4]
add edx, 0x30c
push edx
mov eax, dword [ebp - 0x64]
sub eax, 0x284
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x303
push ecx
call fcn.00424670
add esp, 0x1c
mov dword [ebp - 0x60], 0
jmp 0x40c286
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [0x50cf88]
sub eax, 0x18a3a
cmp dword [ebp - 0x60], eax
jge 0x40c39a
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x18]
jge 0x40c2ad
mov dword [ebp - 0xac], 1
jmp 0x40c2b7
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x3c]
jge 0x40c2ce
mov dword [ebp - 0xb0], 1
jmp 0x40c2d8
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x64]
xor eax, dword [ebp - 0xac]
or eax, dword [ebp - 0xb0]
je 0x40c395
push 0x7e71
push 0x13e9e
push 0x131d6
push 0x2767
push 0x18e7
push 0x11b4a
push 0x1070d
push 0xdbb1
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
add esp, 0x20
mov ecx, dword [0x50cf84]
sub ecx, 1
mov dword [0x50cf84], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [0x50cf84]
jge 0x40c344
mov dword [ebp - 0xb4], 1
jmp 0x40c34e
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x14]
jge 0x40c374
mov dword [ebp - 0xb8], 1
jmp 0x40c37e
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb4]
and eax, dword [ebp - 0xb8]
je 0x40c395
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
jmp 0x40c27d
mov edx, dword [ebp + 0xc]
and edx, 0x8cf3
xor edx, 0x8805
mov eax, dword [ebp + 0x18]
xor eax, 0xabca
xor eax, 0x84a2
mov byte [eax + str.PbaVGCNOffKGzkL], dl
mov ecx, dword [0x50cfd4]
cmp ecx, dword [ebp - 0x20]
jge 0x40c3d3
mov dword [ebp - 0xbc], 1
jmp 0x40c3dd
mov dword [ebp - 0xbc], 0
mov edx, dword [ebp - 0x30]
and edx, dword [ebp - 4]
or edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 8]
or edx, eax
je 0x40c3fc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
and edx, 0xd3af
xor edx, 0x38fd
xor edx, 0xba47
mov eax, dword [ebp + 0x1c]
xor eax, 0xffffcff0
or eax, 0xd615
xor eax, 0xffffd7db
mov byte [eax + str.PbaVGCNOffKGzkL], dl
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
add edx, 0x3a
push edx
mov eax, dword [0x50cfa0]
add eax, 0x158
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x210
push ecx
call fcn.0041fec0
add esp, 0xc
mov edx, dword [ebp + 0x1c]
or edx, 0xbd5b
xor edx, 0xfd7f
mov eax, 0xaa1a
sub eax, dword [ebp + 0x18]
xor eax, 0x7ab3
mov byte [eax + str.PbaVGCNOffKGzkL], dl
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [0x50cf90]
jge 0x40c48c
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 8]
jge 0x40c4a0
mov dword [ebp - 0xc0], 1
jmp 0x40c4aa
mov dword [ebp - 0xc0], 0
mov ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x34]
jge 0x40c4c1
mov dword [ebp - 0xc4], 1
jmp 0x40c4cb
mov dword [ebp - 0xc4], 0
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x38]
or eax, dword [ebp - 0xc0]
or eax, dword [ebp - 0xc4]
je 0x40c4f1
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov eax, str.PbaVGCNOffKGzkL
jmp 0x40c528
mov esp, ebp
pop ebp
ret