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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xbd9
call fcn.004637e0
mov eax, dword [0x4d9400]
add esp, 4
xor ebx, ebx
mov dword [eax + 0x10], ebx
mov ecx, dword [0x4d9400]
mov dword [ecx + 0xc], ebx
mov edx, dword [0x4d9400]
mov dword [edx + 0x20], ebx
mov eax, dword [0x4d9400]
mov dword [eax + 0x24], ebx
jmp 0x46c320
mov eax, dword [0x4d9400]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x4d68f4]
mov esi, dword [ecx]
cmp edx, dword [eax + 8]
jae 0x46c504
mov eax, dword [eax + 0x14]
push ebx
push eax
push esi
call fcn.0047707e
push esi
call fcn.0046b9d0
mov edi, 1
add esp, 0x10
cmp eax, edi
je 0x46c509
push esi
call fcn.00476f8f
mov ecx, dword [0x4d9400]
mov dword [ecx + 0x14], eax
mov edx, dword [0x4d9400]
mov eax, dword [edx + 0x18]
push ebx
push eax
push esi
call fcn.0047707e
push 0x1ce
lea ecx, [ebp - 0x1d4]
push ebx
push ecx
call fcn.00470280
mov edx, dword [0x4d9400]
push 0x1ce03
add edx, 0x182e
push ebx
push edx
call fcn.00470280
mov eax, dword [0x4d68f4]
mov ecx, dword [eax]
mov eax, dword [0x4d9400]
mov edx, dword [eax + 0x1e633]
push ecx
push edx
add eax, 0x182e
push edi
push eax
call fcn.0047697e
mov eax, dword [0x4d68f4]
mov ecx, dword [eax]
push ecx
call fcn.00476f8f
mov edx, dword [0x4d9400]
mov dword [edx + 0x18], eax
lea eax, [ebp - 0x1d4]
push eax
mov eax, dword [0x4d9400]
mov ecx, dword [eax + 0x1e633]
mov edx, dword [eax + 0xc]
push ecx
push edx
add eax, 0x182e
push eax
call fcn.0046bf90
add esp, 0x4c
test eax, eax
je 0x46c4d3
mov eax, dword [0x4d9400]
xor ecx, ecx
xor esi, esi
cmp cx, word [eax + 0x1e631]
jae 0x46c4c8
lea ecx, [ecx]
cmp word [ebp + esi*2 - 0x1d4], di
jne 0x46c479
add dword [eax + 0x20], edi
mov ecx, dword [0x4d9400]
movzx edx, word [ecx + 0x2c]
mov eax, dword [ecx + 0x1e633]
imul eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
lea edi, [esi + 1]
imul edx, edi
add edx, eax
push edx
add eax, ebx
push eax
push esi
push ecx
push 0xc05
call fcn.00463a10
mov eax, dword [0x4d9400]
mov edx, dword [eax + 0x1e633]
push edx
add eax, 0x182e
push esi
push eax
call fcn.0046c0c0
add esp, 0x20
jmp 0x46c4a5
movzx edx, word [eax + 0x2c]
mov ecx, dword [eax + 0x1e633]
imul ecx, dword [eax + 0xc]
lea edi, [esi + 1]
imul edx, edi
add edx, ecx
push edx
mov edx, dword [eax + 0xc]
add ecx, ebx
push ecx
push esi
push edx
push 0xc04
call fcn.00463a10
add esp, 0x14
mov eax, dword [0x4d9400]
movzx ecx, word [eax + 0x1e631]
mov esi, edi
add ebx, 0x200
mov edi, 1
cmp esi, ecx
jl 0x46c420
xor ebx, ebx
mov edx, dword [0x4d68f4]
mov ecx, dword [edx + 4]
jmp 0x46c4e0
mov eax, dword [0x4d68f4]
mov ecx, dword [eax + 4]
mov eax, dword [0x4d9400]
mov edx, dword [eax + 0x1e633]
push ecx
push edx
add eax, 0x182e
push edi
push eax
call fcn.00476af2
mov eax, dword [0x4d9400]
add esp, 0x10
add dword [eax + 0xc], edi
jmp 0x46c320
mov edi, 1
push 0xbd3
call fcn.004637e0
mov eax, dword [0x4d9400]
add esp, 4
cmp dword [eax + 0xc], ebx
jne 0x46c540
push 0xbd4
call fcn.004637e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470483
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x46c556
push 0xbd5
call fcn.004637e0
add esp, 4
jmp 0x46c59e
push eax
push 0xbd6
call fcn.00463870
mov eax, dword [0x4d9400]
mov eax, dword [eax + 0x24]
lea ecx, [eax + 1]
shr ecx, 1
push ecx
push eax
push 0xbd7
call fcn.004638c0
mov ecx, dword [0x4d9400]
mov eax, dword [ecx + 0x24]
imul eax, eax, 0x64
xor edx, edx
div dword [ecx + 0x20]
push 0x4acdcc
push eax
push 0xbd8
call fcn.00463910
add esp, 0x20
mov edx, dword [0x4d68f4]
mov esi, dword [edx + 4]
push esi
call fcn.00477484
push esi
push 0x4d69e0
mov dword [0x4d6a01], ebx
mov word [0x4d69ee], 0
call fcn.00463070
add esp, 0xc
cmp eax, edi
jne 0x46c5f3
push 0x4a099a
push 0x3ef
call fcn.00462850
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470483
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4d68f4]
push ebx
add eax, 4
push ebx
push eax
call fcn.004605e0
mov ecx, dword [0x4d9400]
mov edx, dword [ecx]
mov eax, dword [0x4d68f4]
mov ecx, dword [eax + 4]
add esp, 0xc
push edx
push ecx
call fcn.0047b26b
add esp, 4
push eax
call fcn.0047b89d
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00470483
mov esp, ebp
pop ebp
ret