Function at 0x41d3fc
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b28
xor eax, eax
push ebp
push 0x41d6d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x10]
call fcn.0041cf7c
mov eax, dword [ebp - 0x10]
call fcn.00404940
cmp eax, 2
jle 0x41d464
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x41d54d
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x3a
je 0x41d54d
lea edx, [ebp - 0x6c]
xor eax, eax
call fcn.0041bb64
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x14]
call fcn.0041bc10
cmp byte [ebp - 5], 0
jne 0x41d532
call fcn.0041c3e4
test al, al
je 0x41d498
push 0
call fcn.00407984
jmp 0x41d6a2
lea eax, [ebp - 0x10]
mov edx, 0x41d6ec
call fcn.00404948
lea eax, [ebp - 0x10]
mov edx, 0x105
call fcn.00404cc4
lea eax, [ebp - 0x68]
mov edx, 0x4c
call fcn.00407ba4
mov dword [ebp - 0x68], 0x4c
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x14]
call fcn.00404b38
mov dword [ebp - 0x3c], eax
mov eax, 0x41d6f0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x10]
call fcn.00404b38
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x104
lea eax, [ebp - 0x18]
mov edx, 0x4f5798
call fcn.004048e4
mov eax, dword [ebp - 0x18]
call fcn.00404b38
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x8004
lea eax, [ebp - 0x68]
push eax
call fcn.0041ad2c
test eax, eax
je 0x41d6a2
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x4c]
call fcn.00404878
jmp 0x41d54d
lea eax, [ebp - 0x70]
mov edx, 0x4f54d8
call fcn.004048e4
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040498c
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x10]
call fcn.00404b38
push eax
call fcn.00406e6c
mov esi, eax
cmp esi, 0xffffffff
je 0x41d6a2
cmp dword [0x4f55d8], 0
jne 0x41d584
push esi
call fcn.004071ac
push 2
push 0
push 0
push esi
call fcn.004071cc
push dword [ebp - 4]
push 0x41d708
push 0x41d708
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404a00
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404940
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.00407244
cmp dword [0x4f55d8], 0
jbe 0x41d69a
push 0
push esi
call fcn.00406fc4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x4f55d8]
jbe 0x41d69a
or ebx, 0xffffffff
push 0
push 0
push 0
push 4
push 0
push esi
call fcn.00406e74
mov edi, eax
test edi, edi
je 0x41d67f
push 0
push 0
push 0
push 0xf001f
push edi
call fcn.00407154
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41d679
mov eax, dword [ebp - 0xc]
push eax
push 0
inc ebx
push ebx
push 0xffffffffffffffff
mov eax, 0x41d70c
mov ecx, 9
mov edx, dword [ebp - 0x1c]
call fcn.00408478
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d659
mov eax, dword [0x4f55d8]
shr eax, 2
mov edx, dword [0x4f55d8]
sub edx, eax
mov eax, dword [ebp - 0xc]
sub eax, ebx
cmp edx, eax
jbe 0x41d61d
cmp ebx, 0xffffffff
je 0x41d670
mov ecx, dword [ebp - 0xc]
sub ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
add eax, ebx
call fcn.004029bc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407214
push edi
call fcn.00406e54
cmp ebx, 0xffffffff
jle 0x41d69a
push 0
push 0
mov eax, dword [ebp - 0xc]
sub eax, ebx
push eax
push esi
call fcn.004071cc
push esi
call fcn.004071ac
push esi
call fcn.00406e54
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d6d9
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004046ac
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004046ac
lea eax, [ebp - 4]
call fcn.00404688
ret