Function at 0x50c418
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea edx, [ebp - 0x1cc]
push edx
call fcn.0066c9ec
add esp, 8
push 0x2e
lea ecx, [ebp - 0x1cc]
push ecx
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x50c45f
xor eax, eax
jmp 0x50c975
push str..dmg
push dword [ebp - 0x20]
call fcn.0066c9a0
add esp, 8
test eax, eax
je 0x50c47a
xor eax, eax
jmp 0x50c975
push 0x7d83a2
push dword [ebp - 0x20]
call fcn.0066c9ec
add esp, 8
push dword [ebp + 8]
call fcn.0045d8dc
pop ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
cmp edx, 0xffffffff
jne 0x50c4a5
xor eax, eax
jmp 0x50c975
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0050b3b8
add esp, 8
test eax, eax
je 0x50c4c6
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x50c975
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x1cc]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
jne 0x50c504
push dword [ebp - 0x14]
call fcn.0050c348
pop ecx
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x50c975
call fcn.00404a38
call fcn.00441118
lea edx, [ebp - 0x1cc]
push edx
call fcn.00441278
pop ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [0x6f6920], eax
mov dword [0x826584], 0
mov dword [0x826588], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 8]
mov dword [0x82657c], ecx
mov ecx, dword [edx + 0xc]
mov dword [0x826580], ecx
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x50c920
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
add edx, 0x7ffffffb
sub edx, 3
jb 0x50c590
sub edx, 0x7ffffff8
je 0x50c8f4
dec edx
je 0x50c8b7
dec edx
je 0x50c8f4
jmp 0x50c91d
push 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0045d900
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x50c5c5
mov dword [ebp - 8], 1
jmp 0x50c91d
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x14]
push dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [ecx + eax*8]
mov edx, dword [ebp - 0x10]
sub eax, edx
push eax
push 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x2c]
mov edx, dword [ebp - 0x10]
add eax, edx
push eax
call fcn.0045d9fc
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
test eax, eax
jle 0x50c624
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, edx
cdq
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x1c]
mov ebx, dword [ebp - 0xc]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x50c622
cmp eax, dword [ecx + ebx*8]
jb 0x50c5ca
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x1c]
mov ebx, dword [ebp - 0xc]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x50c63a
cmp eax, dword [ecx + ebx*8]
je 0x50c648
mov dword [ebp - 8], 1
jmp 0x50c91d
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x30]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x24]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
cmp ecx, reloc.OLEAUT32.DLL_SysFreeString
jne 0x50c72c
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
call fcn.0050cc9c
pop ecx
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
je 0x50c6cf
mov dword [ebp - 8], 1
jmp 0x50c91d
push 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x34
push ecx
call fcn.0050ceac
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
jne 0x50c720
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x24]
mov eax, dword [ebp - 0xc]
push dword [ecx + eax*8 + 4]
push dword [ecx + eax*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
push edx
push eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x48]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x50c718
cmp eax, dword [esp]
pop edx
pop eax
je 0x50c808
mov dword [ebp - 8], 1
jmp 0x50c808
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4]
cmp ecx, reloc.OLEAUT32.DLL_SysStringLen
jne 0x50c7ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x44]
mov dword [ebp - 0x28], edx
push 0
push 0
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x30]
call fcn.0054ebe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x50c7a2
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x24]
mov eax, dword [ebp - 0xc]
push dword [ecx + eax*8 + 4]
push dword [ecx + eax*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
push edx
push eax
mov eax, dword [ebp - 0x28]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x50c79e
cmp eax, dword [esp]
pop edx
pop eax
je 0x50c808
or eax, 0xffffffff
jmp 0x50c975
push 0
mov edx, dword [ebp - 0x14]
push dword [edx + 0x38]
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x2c]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x44]
mov edx, dword [ebp - 0x14]
push dword [edx + 0x30]
call fcn.005a90f8
add esp, 0x14
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x24]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
push edx
push eax
mov eax, dword [ebp - 4]
cdq
cmp edx, dword [esp + 4]
jne 0x50c7fc
cmp eax, dword [esp]
pop edx
pop eax
je 0x50c808
or eax, 0xffffffff
jmp 0x50c975
mov edx, dword [ebp - 8]
test edx, edx
jne 0x50c840
push 0
lea ecx, [ebp - 0x24]
push ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp - 0xc]
push dword [edx + ecx*8 + 4]
push dword [edx + ecx*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
push eax
mov edx, dword [ebp - 0x14]
push dword [edx + 0x30]
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x24]
xor edx, edx
add dword [0x826584], eax
adc dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x1d4], eax
sub edx, 0x80000000
mov dword [ebp - 0x1d0], edx
fild qword [ebp - 0x1d4]
fadd qword [0x50c97c]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x1dc], eax
sub edx, 0x80000000
mov dword [ebp - 0x1d8], edx
fild qword [ebp - 0x1dc]
fadd qword [0x50c97c]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
jmp 0x50c91d
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [edx + ecx*8 + 4]
push dword [edx + ecx*8]
mov edx, dword [ebp - 0x14]
push dword [edx]
call fcn.0050aec9
add esp, 0x18
test eax, eax
jne 0x50c91d
mov dword [ebp - 8], 1
jmp 0x50c91d
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x24]
mov edx, dword [ebp - 0xc]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
mov eax, pe_nt_image_headers32
xor edx, edx
call fcn.006744e4
push edx
push eax
call fcn.0050aff1
add esp, 0xc
inc dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x50c942
mov edx, dword [0x6f6920]
test edx, edx
jne 0x50c942
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
cmp ecx, edx
jb 0x50c55a
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x14]
call fcn.0050c348
pop ecx
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_CloseHandle
call fcn.00441200
call fcn.00404a4c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x50c970
xor eax, eax
jmp 0x50c975
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret