Function at 0x47b400
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f746c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push esi
push edi
mov dword [ebp - 0x230], ecx
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x9a0], 0
jne 0x47b43f
mov eax, 0x85670004
jmp 0x47c424
mov ecx, dword [ebp - 0x230]
mov ecx, dword [ecx + 0x9a0]
call fcn.00418870
test eax, eax
jne 0x47b45b
xor eax, eax
jmp 0x47c424
mov edx, dword [ebp - 0x230]
mov dword [edx + 0x9b0], 0
mov dword [edx + 0x9b4], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x9a0]
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x9a0]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x34], 0
cmp dword [ebp - 0x4c], 0
jl 0x47b4c6
jg 0x47b4c2
cmp dword [ebp - 0x50], 0x7fffffff
jbe 0x47b4c6
mov byte [ebp - 0x34], 1
mov dword [ebp - 0x64], 0x80
mov dword [ebp - 0x6c], 2
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x9a0]
call fcn.00418870
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
shl ecx, 7
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x18], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x54]
call fcn.00404dc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x230]
xor edx, edx
mov dl, byte [ecx + 0x9a9]
test edx, edx
je 0x47b7f7
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov cl, byte [eax + 0x9a8]
test ecx, ecx
jne 0x47b7f7
push 0x52f2a0
mov ecx, dword [ebp - 0x230]
add ecx, 0x9a4
call fcn.00447470
push eax
call fcn.004ac35a
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47b68d
push 0x10
push 0xef4d
lea edx, [ebp - 0x1d8]
push edx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x238]
call fcn.00447470
push eax
push 0xef4c
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x240]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1dc]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d8]
call fcn.004d37cb
mov dword [ebp - 0x1e0], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004d37cb
mov eax, dword [ebp - 0x1e0]
jmp 0x47c424
mov eax, SysReAllocString
xor edx, edx
div dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push str._I64u_n
mov edx, dword [ebp - 0x24]
push edx
call fcn.004ac620
add esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
and ecx, 0x20
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0
je 0x47b783
push 0x10
push 0xef4d
lea edx, [ebp - 0x1e4]
push edx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x248]
call fcn.00447470
push eax
push 0xef4c
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x250]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1e4]
call fcn.004d37cb
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004d37cb
mov eax, dword [ebp - 0x1ec]
jmp 0x47c424
mov ecx, dword [ebp - 0x230]
add ecx, 0x9a4
push ecx
lea ecx, [ebp - 0x54]
call fcn.004d3904
push 0x2e
lea ecx, [ebp - 0x54]
call fcn.004cc57e
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
je 0x47b7f2
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x54]
call fcn.004cc4db
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x258], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x258]
push edx
lea ecx, [ebp - 0x54]
call fcn.004d3904
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f0]
call fcn.004d37cb
jmp 0x47b8f8
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x230]
add ecx, 0x9a4
call fcn.00447470
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x47b8eb
push 0x10
push 0xef4d
lea eax, [ebp - 0x1f4]
push eax
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x260]
call fcn.00447470
push eax
push 0xef4c
lea edx, [ebp - 0x1f8]
push edx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x268]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1f8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f4]
call fcn.004d37cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004d37cb
mov eax, dword [ebp - 0x1fc]
jmp 0x47c424
mov ecx, dword [ebp - 0x230]
mov byte [ecx + 0x9a9], 0
mov edx, dword [ebp - 0x230]
xor eax, eax
mov al, byte [edx + 0x9a8]
test eax, eax
je 0x47ba69
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x30], edx
push 0x4000
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x184], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x180]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x184], 0x59444e48
mov dword [ebp - 0x180], 0x52564352
mov dword [ebp - 0x17c], 0x474d4959
mov dword [ebp - 0x178], 1
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x16c], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x100
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47b9ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x5c]
add ecx, 0x100
mov edx, dword [ebp - 0x58]
adc edx, 0
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x50]
add edx, 0x7f
mov eax, dword [ebp - 0x4c]
adc eax, 0
push 0
push 0x80
push eax
push edx
call fcn.004aa4b0
add eax, 1
adc edx, 0
mov ecx, 2
call fcn.004aa8c0
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], edx
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x190]
mov edx, dword [ebp - 0x58]
adc edx, dword [ebp - 0x18c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x84], ecx
push 0
lea edx, [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
je 0x47c2e9
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov cl, byte [eax + 0x9aa]
test ecx, ecx
jne 0x47c2e9
mov edx, dword [ebp - 0x50]
or edx, dword [ebp - 0x4c]
test edx, edx
jne 0x47ba9f
jmp 0x47c2e9
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov cl, byte [eax + 0x9a9]
test ecx, ecx
je 0x47be41
cmp dword [ebp - 0x20], 0
jne 0x47be41
cmp dword [ebp - 0x3c], 0xffffffff
je 0x47bad6
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1ac]
call fcn.00404dc0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.00404dc0
mov byte [ebp - 4], 9
mov dword [ebp - 0x1a0], 0xa
cmp dword [ebp - 0x1a0], 0
jle 0x47bb83
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
push edx
push str..sd_02X
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004cc926
add esp, 0xc
mov edx, dword [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x54]
push eax
push str._s_s
lea ecx, [ebp - 0x1ac]
push ecx
call fcn.004cc926
add esp, 0x10
lea ecx, [ebp - 0x1ac]
call fcn.00447470
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47bb72
jmp 0x47bb83
mov edx, dword [ebp - 0x1a0]
sub edx, 1
mov dword [ebp - 0x1a0], edx
jmp 0x47bb04
cmp dword [ebp - 0x1a0], 0
jne 0x47bc4a
push 0x10
push 0xef4d
lea eax, [ebp - 0x208]
push eax
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x270], eax
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x274]
call fcn.00447470
push eax
push 0xef4c
lea edx, [ebp - 0x20c]
push edx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x27c]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x20c]
call fcn.004d37cb
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x208]
call fcn.004d37cb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.004d37cb
jmp 0x47c2e9
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x1ac]
call fcn.00447470
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x47bd35
push 0x10
push 0xef4d
lea ecx, [ebp - 0x210]
push ecx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x284]
call fcn.00447470
push eax
push 0xef4c
lea eax, [ebp - 0x214]
push eax
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x28c]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x214]
call fcn.004d37cb
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x210]
call fcn.004d37cb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.004d37cb
jmp 0x47c2e9
mov edx, dword [ebp - 0x1a8]
push edx
push 0x52f2bc
mov eax, dword [ebp - 0x24]
push eax
call fcn.004ac620
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
and edx, 0x20
mov dword [ebp - 0x1a4], edx
cmp dword [ebp - 0x1a4], 0
je 0x47be23
push 0x10
push 0xef4d
lea eax, [ebp - 0x218]
push eax
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x294]
call fcn.00447470
push eax
push 0xef4c
lea edx, [ebp - 0x21c]
push edx
call fcn.0046eb4f
add esp, 8
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x29c]
call fcn.00447470
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004d1505
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x21c]
call fcn.004d37cb
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x218]
call fcn.004d37cb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.004d37cb
jmp 0x47c2e9
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1a8]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ac]
call fcn.004d37cb
mov dword [ebp - 0x194], 0x80
cmp dword [ebp - 0x4c], 0
jg 0x47be65
jl 0x47be5c
cmp dword [ebp - 0x50], 0x80
jae 0x47be65
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x230]
xor eax, eax
mov al, byte [edx + 0x9a9]
test eax, eax
je 0x47be8b
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x194]
jae 0x47be8b
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x194], edx
push 0
push 1
mov eax, dword [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x9a0]
call fcn.0048c30b
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x194]
cmp ecx, dword [ebp - 0x68]
jbe 0x47bf5e
cmp dword [ebp - 0x1c], 0
jne 0x47bf03
mov edx, dword [ebp - 0x194]
sub edx, dword [ebp - 0x68]
imul edx, dword [ebp - 0x40]
push edx
push 0
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
add ecx, eax
push ecx
call fcn.004a9230
add esp, 0xc
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x68], edx
jmp 0x47bf5e
lea ecx, [ebp - 0x1b0]
call fcn.00404dc0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.Cant_read__error:_0x_x___d__d__.
lea eax, [ebp - 0x1b0]
push eax
call fcn.004cc926
add esp, 0x14
push 0
push 0x10
lea ecx, [ebp - 0x1b0]
call fcn.00447470
push eax
call fcn.004df32b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.004d37cb
jmp 0x47c2e9
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x40]
imul edx, dword [ebp - 0x68]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x230]
xor ecx, ecx
mov cl, byte [eax + 0x9a8]
test ecx, ecx
je 0x47bfcf
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0046fcf8
add esp, 0xc
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
je 0x47bfcf
mov edx, dword [ebp - 0x1b4]
cmp edx, dword [ebp - 0x19c]
jae 0x47bfcf
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x19c], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47c0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 8
je 0x47c016
cmp dword [ebp - 0x1c], 0xe
je 0x47c016
cmp dword [ebp - 0x1c], 0x27
je 0x47c016
cmp dword [ebp - 0x1c], 0x70
jne 0x47c060
push 0xffffffffffffffff
push 0x14
push 0xef27
call fcn.004df363
cmp eax, 7
jne 0x47c032
mov byte [ebp - 0x18], 0
jmp 0x47c0b6
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x1b8], ecx
push 0
lea edx, [ebp - 0x1b8]
push edx
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x47c0b1
lea ecx, [ebp - 0x1c0]
call fcn.00404dc0
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x1c]
push edx
push str.Image_writing_error:_0x_x
lea eax, [ebp - 0x1c0]
push eax
call fcn.004cc926
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x1c0]
call fcn.00447470
push eax
call fcn.004df32b
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.004d37cb
jmp 0x47c0b6
jmp 0x47bfcf
mov ecx, dword [ebp - 0x230]
xor edx, edx
mov dl, byte [ecx + 0x9a8]
test edx, edx
je 0x47c1da
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
je 0x47c1da
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0x1000
jne 0x47c1da
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c4], eax
push 0
lea ecx, [ebp - 0x1c4]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x4000
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47c150
cmp dword [ebp - 0x10], 0x4000
je 0x47c162
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
jmp 0x47c2e9
mov ecx, dword [ebp - 0x19c]
xor edx, edx
mov eax, dword [ebp - 0x5c]
add eax, ecx
mov ecx, dword [ebp - 0x58]
adc ecx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c4], eax
push 0
lea ecx, [ebp - 0x1c4]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x19c]
xor edx, edx
mov eax, dword [ebp - 0x5c]
sub eax, ecx
mov ecx, dword [ebp - 0x58]
sbb ecx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x74]
add edx, 0x4000
mov eax, dword [ebp - 0x70]
adc eax, 0
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x19c]
xor edx, edx
mov eax, dword [ebp - 0x5c]
add eax, ecx
mov ecx, dword [ebp - 0x58]
adc ecx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x18]
and edx, 0xff
test edx, edx
jne 0x47c204
jmp 0x47c2e9
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x68]
imul ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [eax + 0x9b0]
add esi, ecx
mov eax, dword [eax + 0x9b4]
adc eax, edx
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 0x9b0], esi
mov dword [ecx + 0x9b4], eax
mov edx, dword [ebp - 0x68]
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, edx
mov edx, dword [ebp - 0x44]
adc edx, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub edx, eax
mov eax, dword [ebp - 0x4c]
sbb eax, ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x230]
xor edx, edx
mov dl, byte [ecx + 0x9a9]
test edx, edx
je 0x47c27a
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x34]
and ecx, 0xff
test ecx, ecx
jne 0x47c2ad
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x9ac]
mov ecx, dword [eax + 0x60]
add ecx, 0x80
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x9ac]
mov dword [eax + 0x60], ecx
jmp 0x47c2e4
mov ecx, dword [ebp - 0x6c]
sub ecx, 1
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x47c2e4
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x9ac]
mov ecx, dword [eax + 0x60]
add ecx, 1
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x9ac]
mov dword [eax + 0x60], ecx
mov dword [ebp - 0x6c], 2
jmp 0x47ba69
mov ecx, dword [ebp - 0x230]
xor edx, edx
mov dl, byte [ecx + 0x9a8]
test edx, edx
je 0x47c373
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x1d0], ecx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x1cc], edx
push 0
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [ebp - 0x1d0]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x60]
shl ecx, 2
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47c366
mov ecx, dword [ebp - 0x60]
shl ecx, 2
cmp dword [ebp - 0x10], ecx
je 0x47c373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x47c398
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.004d3366
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x30], 0
je 0x47c3bd
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.004d3366
add esp, 4
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.004d3366
add esp, 4
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x47c406
mov eax, dword [ebp - 0x24]
push eax
call fcn.004abac3
add esp, 4
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004d37cb
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4