Function at 0x408b30
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x708]
sub esp, 0x708
push 0xffffffffffffffff
push 0x4a07b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4d9700]
xor eax, ebp
mov dword [ebp + 0x704], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x710]
xor edi, edi
push edi
push edi
push edi
push edi
push 1
mov dword [ebp - 0x28], ecx
push edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov esi, edx
call fcn.00468555
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], edi
call fcn.0046416b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408bae
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.0046416b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408bdb
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 2
push 2
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], 0x4e20
call fcn.00467da2
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 3
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], 1
call fcn.00467da2
push 0x104
lea ecx, [ebp + 0x3e8]
push ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 3
mov eax, dword [esi]
push eax
push edi
push edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push edi
push 0x104
lea edx, [ebp + 0x5f0]
push edx
push 0xffffffffffffffff
lea eax, [ebp + 0x3e8]
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp + 0x5f0]
push edx
call fcn.00468b1f
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
push edi
push edi
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.00468f5b
mov edx, dword [ebp - 0x18]
push 0x20000000
push edi
push edi
push 1
push edi
mov ebx, eax
push edx
push 1
mov ecx, ebx
mov dword [ebp - 0x24], ebx
call fcn.00469012
mov esi, eax
push edi
mov dword [ebp - 0x34], esi
push edi
push edi
push edi
mov ecx, esi
call fcn.00468ad3
cmp eax, edi
jne 0x408d0e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ce2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409068
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, esi
call fcn.00467e2d
cmp dword [ebp - 0x5c], 0xc8
push edi
jne 0x408f77
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x408db3
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
lea ecx, [ebp - 0x54]
call fcn.00468baf
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409068
push edi
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp]
push edx
push 5
mov ecx, esi
mov dword [ebp - 0x60], 0x3e8
call fcn.00467e0f
lea eax, [ebp]
push eax
call fcn.0047c766
push 0x2800
mov dword [ebp - 0x68], eax
call fcn.00459016
mov edx, dword [esi]
add esp, 8
mov ebx, eax
mov eax, dword [edx + 0x34]
push 0x2800
push ebx
mov ecx, esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], edi
call eax
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x408ee2
add eax, edi
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
test eax, eax
jge 0x408e20
fadd dword [0x4ccbe0]
mov ecx, dword [ebp - 0x68]
fild dword [ebp - 0x68]
test ecx, ecx
jge 0x408e30
fadd dword [0x4ccbe0]
fdivp st(1)
push 0xa
lea edx, [ebp + 0x6f4]
push 0x10
push edx
fmul qword [0x4ccbd8]
fst qword [ebp - 0x30]
call fcn.0047ed80
push eax
call fcn.0047c639
push 0x4cbd04
lea eax, [ebp + 0x6f4]
push 0x10
push eax
call fcn.0047bf1b
add esp, 0x1c
lea ecx, [ebp + 0x6f4]
push ecx
mov ecx, dword [ebp - 0x40]
push 0x3f5
call fcn.0046087d
fld qword [ebp - 0x30]
fnstcw word [ebp - 0x1e]
push 0
movzx eax, word [ebp - 0x1e]
or eax, 0xc00
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x125b7]
fldcw word [ebp - 0x2c]
fistp qword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
push edx
push 0x402
fldcw word [ebp - 0x1e]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x3c]
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [esi]
add dword [ebp - 0x28], ecx
mov eax, dword [edx + 0x34]
push 0x2800
push ebx
mov ecx, esi
call eax
mov edi, eax
mov eax, dword [ebp - 0x64]
jmp 0x408e03
push ebx
call fcn.0045900b
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x408f13
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x54]
call fcn.00468baf
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.00468c45
mov al, 1
jmp 0x409079
call fcn.0045900b
add esp, 4
mov dword [ebp - 0x38], edi
cmp esi, edi
je 0x408f9d
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov dword [ebp - 0x34], edi
cmp ebx, edi
je 0x408fb8
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x54]
call fcn.00468baf
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x409068
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.00468c45
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x704]
xor ecx, ebp
call fcn.0047bc57
add ebp, 0x708
mov esp, ebp
pop ebp
ret 4