Function at 0x637dd0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x7d2cd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.007030c0
lea eax, [esp + 0x12]
xor ebp, ebp
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x38]
push ebp
push edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x24], ecx
call fcn.00647000
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x58]
push ebp
mov byte [esp + 0x50], 2
push edx
mov dword [esp + 0x24], ecx
call fcn.00647000
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x68]
push 1
mov byte [esp + 0x50], 4
push edx
mov dword [esp + 0x24], ecx
call fcn.00647350
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x78]
push ebp
mov byte [esp + 0x50], 6
push edx
mov dword [esp + 0x24], ecx
call fcn.00647ae0
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x88]
push ebp
mov byte [esp + 0x50], 8
push edx
mov dword [esp + 0x24], ecx
call fcn.00647ae0
mov al, byte [esp + 0x50]
lea edi, [esi + 0xe8]
mov byte [esp + 0x48], 0xa
push ebp
lea ecx, [edi + 4]
mov dword [esp + 0x1c], edi
mov byte [ecx], al
call fcn.00404e60
lea ecx, [esp + 0x13]
mov byte [esp + 0x48], 0xb
push ecx
lea ecx, [edi + 0x14]
call fcn.00428190
mov byte [esp + 0x48], 0xc
lea edx, [esp + 0x12]
push edx
lea ecx, [edi + 0x24]
call fcn.00428190
mov eax, dword [esp + 0x50]
mov byte [esp + 0x48], 0xe
push 0x24
mov dword [esi], fcn.004406c0
mov dword [esi + 0x18], eax
mov dword [esi + 0xe4], ebp
mov dword [esi + 0x188], ebp
mov dword [esi + 0x18c], ebp
mov dword [esi + 0x190], ebp
mov dword [esi + 0x194], 0xffffffff
mov dword [esi + 0x198], ebp
mov dword [esi + 0x19c], ebp
mov dword [esi + 0x1a0], ebp
mov dword [esi + 0x1a4], 0x41700000
mov byte [esi + 0x1a8], 0
call fcn.007a2d8d
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0xf
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x637f70
lea ecx, [esp + 0x50]
push ecx
lea ecx, [edi + 4]
call fcn.00428190
lea edx, [esp + 0x13]
lea eax, [esp + 0x12]
push edx
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x10
call fcn.0064c650
mov byte [esp + 0x48], 0x11
mov dword [edi], 0x7ecf50
mov byte [esp + 0x48], bl
jmp 0x637f72
xor edi, edi
mov cl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
mov byte [esp + 0x20], cl
push ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x1c], edi
call fcn.00404e60
mov edi, 0x831154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x831154
lea ecx, [esp + 0x28]
call fcn.00404eb0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
cmp eax, ebp
mov byte [esp + 0x48], 0x12
mov dword [esp + 0x18], edx
je 0x638161
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x637fcf
mov eax, 0x7e5658
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x63800c
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x637ff9
mov eax, 0x7e5658
push eax
push 0x82be0c
call fcn.0045afa0
add esp, 8
jmp 0x638161
lea eax, [esp + 0x20]
push 0x82be04
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040b4d0
add esp, 0xc
lea edx, [esp + 0x14]
mov byte [esp + 0x48], 0x13
push edx
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
ja 0x638056
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x638146
jmp 0x638141
push ebp
call fcn.007a2d8d
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push 0
push eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x1608
push 0x6081
push 0x816
push ebp
push edi
call fcn.00460b80
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x6380a6
mov eax, 0x7e5658
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea ecx, [esp + 0x50]
push 0
push ecx
mov ebx, eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call ebp
push edi
call fcn.007a02e0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x6380f0
mov eax, 0x7e5658
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x18]
mov edi, eax
push edi
call fcn.0064fc60
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x638139
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x63812b
mov eax, 0x7e5658
push eax
push 0x82bde0
call fcn.0045afa0
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x638146
mov eax, 0x7e5658
push eax
call fcn.007a3a37
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x12
push 1
call fcn.00404e60
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x14
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x6381c0
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.00428190
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x15
call fcn.0064c850
mov byte [esp + 0x48], 0x16
mov dword [edi], 0x7ecf4c
mov byte [esp + 0x48], bl
jmp 0x6381c2
xor edi, edi
mov dl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x20], edi
mov byte [esp + 0x24], dl
call fcn.00404e60
mov edi, 0x83113c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x83113c
lea ecx, [esp + 0x28]
call fcn.00404eb0
mov eax, dword [esi + 0x20]
mov byte [esp + 0x48], 0x17
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x6383b5
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x63821f
mov eax, 0x7e5658
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x63825c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x638249
mov eax, 0x7e5658
push eax
push 0x82be0c
call fcn.0045afa0
add esp, 8
jmp 0x6383b3
lea ecx, [esp + 0x20]
push 0x82be04
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0040b4d0
add esp, 0xc
lea eax, [esp + 0x18]
mov byte [esp + 0x48], 0x18
push eax
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
ja 0x6382aa
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x63839a
jmp 0x638395
push ebp
call fcn.007a2d8d
add esp, 4
lea ecx, [esp + 0x50]
mov edi, eax
mov dword [esp + 0x50], 0
push 0
push ecx
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x1608
push 0x6081
push 0x816
push ebp
push edi
call fcn.00460b80
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x6382fa
mov eax, 0x7e5658
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea edx, [esp + 0x50]
push 0
push edx
mov ebx, eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call ebp
push edi
call fcn.007a02e0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x638344
mov eax, 0x7e5658
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00650000
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x63838d
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x63837f
mov eax, 0x7e5658
push eax
push 0x82bde0
call fcn.0045afa0
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x63839a
mov eax, 0x7e5658
push eax
call fcn.007a3a37
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x17
push 1
call fcn.00404e60
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x19
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x638414
lea eax, [esp + 0x50]
lea ecx, [edi + 4]
push eax
call fcn.00428190
lea ecx, [esp + 0x13]
lea edx, [esp + 0x12]
push ecx
push edx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1a
call fcn.0064ca50
mov byte [esp + 0x48], 0x1b
mov dword [edi], 0x7ecf48
mov byte [esp + 0x48], bl
jmp 0x638416
xor edi, edi
mov al, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0x24], edi
mov byte [esp + 0x34], al
call fcn.00404e60
mov edi, 0x831124
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x831124
lea ecx, [esp + 0x38]
call fcn.00404eb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x1c
push ecx
mov ecx, dword [esi + 0x24]
call fcn.00649d90
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x1d
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x6384bf
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.00428190
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1e
call fcn.0064cc50
mov byte [esp + 0x48], 0x1f
mov dword [edi], 0x7ecf5c
mov byte [esp + 0x48], bl
jmp 0x6384c1
xor edi, edi
mov dl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0x28], edi
mov byte [esp + 0x34], dl
call fcn.00404e60
mov edi, 0x83110c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x83110c
lea ecx, [esp + 0x38]
call fcn.00404eb0
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x20
call fcn.0064a150
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x21
je 0x63853b
mov ecx, eax
call fcn.0064a520
jmp 0x63853d
xor eax, eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ecx
push 0x8310f4
lea ecx, [esp + 0x38]
mov dword [esi + 0x2c], eax
call fcn.004c84c0
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4c], 0x22
call fcn.0064a640
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x23
je 0x63859a
mov ecx, eax
call fcn.0064af40
jmp 0x63859c
xor eax, eax
mov byte [esp + 0x48], 0xe
mov dword [esi + 0x30], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push 0x83116c
call fcn.004c84c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x24
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0064b050
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
push 0x24
call fcn.007a2d8d
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x25
je 0x6385f9
mov ecx, eax
call fcn.0064aa40
jmp 0x6385fb
xor eax, eax
lea edx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push edx
push 0x8310dc
lea ecx, [esp + 0x38]
mov dword [esi + 0x34], eax
call fcn.004c84c0
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x26
call fcn.0064ab50
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404e60
mov ecx, esi
call fcn.00638660
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x40], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4