Function at 0x4da750
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ae37
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0xf8
call fcn.00402cb0
movzx eax, al
test eax, eax
je 0x4da7a1
or eax, 0xffffffff
jmp 0x4daaa4
push 0x54018c
mov ecx, dword [ebp - 0x120]
add ecx, 0xf8
call fcn.0040acf0
push eax
call fcn.00495129
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x4da7d7
or eax, 0xffffffff
jmp 0x4daaa4
mov dword [ebp - 0xe8], 0
push 2
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00495984
add esp, 0xc
test eax, eax
je 0x4da800
or eax, 0xffffffff
jmp 0x4daaa4
mov edx, dword [ebp - 0x110]
push edx
call fcn.00495895
add esp, 4
mov dword [ebp - 0xe8], eax
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call fcn.00495984
add esp, 0xc
cmp dword [ebp - 0xe8], 0xffffffff
jne 0x4da839
or eax, 0xffffffff
jmp 0x4daaa4
mov dword [ebp - 0xe4], 0x28
mov ecx, dword [ebp - 0xe8]
add ecx, 0x28
push ecx
call fcn.0048e173
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x10c], edx
cmp dword [ebp - 0x10c], 0
jne 0x4da887
mov eax, dword [ebp - 0x110]
push eax
call fcn.00493537
add esp, 4
or eax, 0xffffffff
jmp 0x4daaa4
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
push 1
mov eax, dword [ebp - 0x10c]
push eax
call fcn.004956e4
add esp, 0x10
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00493537
add esp, 4
mov byte [ebp - 0xe0], 0
xor edx, edx
mov dword [ebp - 0xdf], edx
mov dword [ebp - 0xdb], edx
mov dword [ebp - 0xd7], edx
mov dword [ebp - 0xd3], edx
mov word [ebp - 0xcf], dx
mov byte [ebp - 0xcd], dl
lea ecx, [ebp - 0xcc]
call fcn.004299e0
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0xcc]
call fcn.004be090
lea ecx, [ebp - 0xcc]
call fcn.004be010
push 0x14
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0xcc]
call fcn.004be0c0
push 0x14
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x108]
call fcn.00424f70
mov dword [ebp - 4], 0
push 0x14
lea ecx, [ebp - 0x108]
call fcn.00402b10
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.0050dee0
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0051f360
add esp, 8
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 2
push 0x28
mov ecx, dword [ebp - 0x128]
call fcn.00402b10
push eax
push 0x28
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0xe8]
push edx
call fcn.00491940
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402ab0
push 0x54019c
mov eax, dword [ebp - 0x120]
add eax, 0xf8
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004523b0
add esp, 0xc
mov dword [ebp - 0x12c], eax
push 0x540194
mov ecx, dword [ebp - 0x12c]
call fcn.0040acf0
push eax
call fcn.00495129
add esp, 8
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
call fcn.00402c30
cmp dword [ebp - 0x4c], 0
jne 0x4daa39
mov dword [ebp - 0x118], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00402ab0
mov eax, dword [ebp - 0x118]
jmp 0x4daaa4
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xe8]
add eax, 0x28
push eax
push 1
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.004952de
add esp, 0x10
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0049500f
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00493537
add esp, 4
mov dword [ebp - 0x11c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402c30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00402ab0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret