Function at 0x650df3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058fa9
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [reloc.MSVCRT.dll___dllonexit]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
xor ebx, ebx
push edi
lea ecx, reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x70], ebx
call fcn.00667de3
push eax
lea ecx, reloc.MSVCRT.dll___dllonexit
call fcn.00671bf3
mov dword [ebp - 4], ebx
mov eax, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov dword [ebp - 0x70], eax
cmp dword [esi + reloc.MSVCRT.dll___dllonexit], ebx
jne 0x65100c
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1006f430
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1006f438
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x70], 1
mov dword [ebp - 0xb8], 0x1005cc24
mov dword [ebp - 0x110], ebx
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], ebx
call fcn.0064cf03
lea ecx, reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x80], ecx
push 0x20
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x7c], ebx
call fcn.00656593
mov byte [ebp - 0x78], al
cmp dword [ebp - 0x80], ebx
jne 0x650ed1
mov eax, dword [ebp - 0xac]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0xb8]
call fcn.0064cdc3
mov edx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov eax, dword [edx + 4]
mov dword [ebp + eax - reloc.MSVCRT.dll___dllonexit], 0x1005cc1c
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - reloc.MSVCRT.dll___dllonexit], 0x1005cc2c
mov dword [ebp - 4], 6
mov eax, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - reloc.MSVCRT.dll___dllonexit], 0x1005cd4c
lea ecx, reloc.MSVCRT.dll___dllonexit
call fcn.006559f3
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1005ccd4
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
lea edx, reloc.MSVCRT.dll___dllonexit
push 0x1006f1b8
push edx
mov byte [ebp - 4], 8
call fcn.006569a3
add esp, 8
lea eax, [ebp - 0x64]
push eax
lea ecx, reloc.MSVCRT.dll___dllonexit
call fcn.006546b3
push 0x1006ef68
mov byte [ebp - 4], 9
call fcn.0065799b
mov esi, eax
mov ecx, esi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x650f83
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.006550e3
push 8
push 0x1006ef70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.006557a3
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x650fb9
lea eax, [ebp - 0x2c]
push 0x1006ef7c
push eax
call fcn.00657ad1
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x650fd4
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x54]
push esi
push 1
push ecx
push eax
call fcn.00657c3f
push esi
call fcn.00657d26
mov eax, dword [ebp - 0x2c]
add esp, 0x14
cmp dword [ebp - 0x18], edi
jae 0x650ff5
lea eax, [ebp - 0x2c]
push 1
push ebx
push ebx
push eax
push 0x1006ef80
push ebx
call dword [0x1005a19c]
push ebx
call fcn.0065801d
lea edx, [ebp - 0x2c]
push edx
push 0x1006efd0
lea ecx, [esi + 0xe0]
call fcn.0066aab3
mov ecx, eax
call fcn.00671483
push 0xffffffffffffffff
mov byte [ebp - 4], 0xb
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00654ff3
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x18], 0x10
jb 0x65105d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.006571f5
add esp, 4
lea ecx, reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0066cf13
sub esp, 0x10
mov byte [ebp - 4], 0xe
mov ecx, esp
cmp edi, ebx
jne 0x65109b
mov dword [ebp - 0x68], esp
push 0x1006f1dc
call fcn.0066f843
sub esp, 0x10
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x6c], esp
jmp 0x6510b2
mov dword [ebp - 0x6c], esp
push 0x1006f1e4
call fcn.0066f843
sub esp, 0x10
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x68], esp
mov ecx, esp
push 0x1006eec4
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
mov edx, dword [esi + 0x38]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x6c], esp
push edx
call fcn.0066f803
sub esp, 0x10
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x1006eec8
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
sub esp, 0x10
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.00670783
sub esp, 0x10
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x1006efd0
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
sub esp, 0x10
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, esp
mov dword [ebp - 0x6c], esp
push edx
call fcn.00670783
sub esp, 0x10
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x1006f09c
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
sub esp, 0x10
lea eax, reloc.MSVCRT.dll___dllonexit
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.00670783
sub esp, 0x10
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x1006f0a0
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
sub esp, 0x10
lea edx, [esi + 0x74]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push edx
call fcn.00670783
sub esp, 0x10
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0x1006eeec
call fcn.0066f843
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066caa3
lea ecx, reloc.MSVCRT.dll___dllonexit
call fcn.0066cf13
add esi, 0x194
mov byte [ebp - 4], 0x16
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x651203
mov eax, dword [esi]
jmp 0x651205
mov eax, esi
mov ecx, dword [ebp - 0x70]
mov byte [eax], bl
push esi
lea eax, reloc.MSVCRT.dll___dllonexit
push eax
lea edx, reloc.MSVCRT.dll___dllonexit
call fcn.00653063
mov edi, eax
cmp edi, 0xfffffffe
je 0x651296
cmp edi, 0xfffffffd
je 0x651296
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xe
call fcn.0066ce63
lea ecx, reloc.MSVCRT.dll___dllonexit
mov byte [ebp - 4], 0xd
call fcn.0066ce63
cmp dword [ebp - 0x34], 0x10
jb 0x651259
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.006571f5
add esp, 4
lea ecx, reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], reloc.MSVCRT.dll___dllonexit
call fcn.006707d3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006571e6
mov esp, ebp
pop ebp
ret
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1006f430
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1006f438
mov byte [ebp - 4], 0x17
mov edi, 0x10
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0xb8], 0x1005cc24
mov dword [ebp - 0x110], ebx
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], ebx
call fcn.0064cf03
lea edx, reloc.MSVCRT.dll___dllonexit
push 0x20
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], ebx
call fcn.00656593
mov byte [ebp - 0x78], al
cmp dword [ebp - 0x80], ebx
jne 0x65130e
mov eax, dword [ebp - 0xac]
or eax, 4
push ebx
push eax
lea ecx, [ebp - 0xb8]
call fcn.0064cdc3
mov eax, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - reloc.MSVCRT.dll___dllonexit], 0x1005cc1c
mov edx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov eax, dword [edx + 4]
mov dword [ebp + eax - reloc.MSVCRT.dll___dllonexit], 0x1005cc2c
mov dword [ebp - 4], 0x1c
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ecx + 4]
lea ecx, reloc.MSVCRT.dll___dllonexit
mov dword [ebp + edx - reloc.MSVCRT.dll___dllonexit], 0x1005cd4c
call fcn.006559f3
mov dword [ebp - reloc.MSVCRT.dll___dllonexit], 0x1005ccd4
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov byte [ebp - 4], 0x1e
cmp dword [esi + 0x14], edi
jb 0x65137d
mov esi, dword [esi]
push 0x1006f1ec
push ecx
push esi
push ecx
lea eax, reloc.MSVCRT.dll___dllonexit
push 0x1006f1f8
push eax
call fcn.006569a3
add esp, 0xc
push eax
call fcn.006569a3
add esp, 0xc
push eax
call fcn.006569a3
add esp, 8
lea ecx, [ebp - 0x64]
push ecx
lea ecx, reloc.MSVCRT.dll___dllonexit
call fcn.006546b3
push 0x1006ef68
mov byte [ebp - 4], 0x1f
call fcn.0065799b
mov esi, eax
mov ecx, esi
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x6513e3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.006550e3
push 8
push 0x1006ef70
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x20
call fcn.006557a3
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x651414
lea eax, [ebp - 0x2c]
push 0x1006ef7c
push eax
call fcn.00657ad1
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], edi
jae 0x65142f
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x54]
push esi
push 1
push edx
push eax
call fcn.00657c3f
push esi
call fcn.00657d26
mov eax, dword [ebp - 0x2c]
add esp, 0x14
cmp dword [ebp - 0x18], edi
jae 0x651450
lea eax, [ebp - 0x2c]
push 1
push ebx
push ebx
push eax
push 0x1006ef80
push ebx
call dword [0x1005a19c]
push ebx
call fcn.0065801d
int3