Function at 0x46dc30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.0046d9c0
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x44]
xor eax, eax
mov dword [esi + 0x1d8], ebx
mov dword [esp + 0x3c], eax
mov dword [esi], 0x539598
mov dword [esp + 0x10], eax
add ebp, 0x18
push eax
mov eax, dword [0x659a18]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x659a18]
lea edx, [esp + 0x54]
push ecx
push 1
push 2
push edx
mov dword [esp + 0x64], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x64]
add esp, 0x1c
and eax, 0xffff
mov ecx, esi
lea ebp, [ebp + eax*8 + 0x1c]
push ebp
call fcn.0043aef0
add ebp, 0x10
mov ecx, esi
push ebp
call fcn.0043b340
mov ecx, dword [0x659a18]
add ebp, 0x10
push 0
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
lea eax, [esp + 0x1c]
push edx
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x44], ecx
add esp, 0x1c
mov ecx, 0x675aa8
mov dword [esp + 0x2c], edx
call fcn.004a13e0
movsx edx, word [esp + 0x28]
mov ecx, eax
movsx eax, word [esp + 0x2c]
sub eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x28]
inc eax
lea edx, [eax + ecx - 1]
mov ax, word [esp + 0x10]
sub word [esp + 0x2e], ax
mov ecx, esi
mov word [esp + 0x2c], dx
call fcn.0046df80
test eax, eax
je 0x46dd6d
mov ax, word [edi + 0x10]
mov cx, word [edi + 0x16]
mov ebp, dword [esp + 0x28]
movsx eax, ax
mov edx, eax
mov word [esp + 0x28], ax
movsx eax, cx
sub edx, ebp
push eax
add word [esp + 0x30], dx
lea ecx, [esp + 0x2c]
call fcn.00433100
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
movsx eax, word [edi + 0x16]
movsx ecx, word [edi + 0x12]
movsx edx, word [edi + 0x14]
sub eax, ecx
lea ecx, [esp + 0x18]
inc eax
push eax
movsx eax, word [edi + 0x10]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004b4a60
mov ecx, dword [eax]
mov dword [edi + 0x34], ecx
mov ecx, 0x675aa8
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [edi + 0x38], edx
mov word [esp + 0x28], ax
call fcn.004a13e0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
lea edx, [eax + ecx - 1]
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x14], eax
movsx ecx, word [esi + 0x16]
movsx edx, word [esi + 0x12]
movsx eax, word [esi + 0x14]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [esi + 0x10]
sub eax, ecx
lea ecx, [esp + 0x1c]
inc eax
push eax
push 0
push 0
call fcn.004b4a60
mov edx, dword [eax]
mov ebp, dword [esp + 0x2a]
mov dword [esi + 0x34], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x2e]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
sub eax, ebp
mov dword [esp + 0x18], ecx
inc eax
mov ecx, esi
add word [esp + 0x1a], ax
mov dword [esp + 0x1c], edx
call fcn.0046df80
test eax, eax
je 0x46de61
mov ax, word [ebx + 0x10]
mov cx, word [ebx + 0x12]
mov edi, dword [esp + 0x18]
movsx eax, ax
mov edx, eax
mov word [esp + 0x18], ax
movsx eax, cx
sub edx, edi
mov ecx, eax
add word [esp + 0x1c], dx
mov edi, dword [esp + 0x1a]
sub ecx, edi
mov word [esp + 0x1a], ax
add word [esp + 0x1e], cx
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edx
movsx eax, word [ebx + 0x16]
movsx ecx, word [ebx + 0x12]
movsx edx, word [ebx + 0x14]
sub eax, ecx
lea ecx, [esp + 0x20]
inc eax
push eax
movsx eax, word [ebx + 0x10]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004b4a60
mov ecx, dword [eax]
mov dword [ebx + 0x34], ecx
mov ecx, ebx
mov edx, dword [eax + 4]
mov dword [ebx + 0x38], edx
call fcn.0044d550
test eax, eax
je 0x46def3
mov ecx, 0x675aa8
call fcn.004a13e0
sub word [esp + 0x1c], ax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
movsx ecx, word [ebx + 0x16]
movsx edx, word [ebx + 0x12]
movsx eax, word [ebx + 0x14]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [ebx + 0x10]
sub eax, ecx
lea ecx, [esp + 0x24]
inc eax
push eax
push 0
push 0
call fcn.004b4a60
mov edx, dword [eax]
mov dword [ebx + 0x34], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0x38], eax
mov ecx, dword [esi + 0x19c]
test ecx, ecx
je 0x46df0f
call fcn.0043cb80
mov eax, dword [esi + 0x19c]
mov ecx, dword [eax]
and ch, 0xef
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc