Function at 0x482a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6d7160]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
movsx ecx, word [edx + 0x20]
cmp eax, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x30], edx
jge 0x482dd8
cmp eax, 0xffffffff
jl 0x482dd8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x482a9d
mov dword [ecx], 0
cmp eax, 0xffffffff
sete cl
test cl, cl
mov byte [ebp - 5], cl
je 0x482ab2
lea edi, [edx + 0x28]
mov dword [ebp - 0x20], edi
jmp 0x482ac0
imul eax, eax, 0x68
add eax, dword [edx + 0x90]
mov dword [ebp - 0x20], eax
mov edi, eax
mov eax, dword [edi + 0x64]
add edx, 0x49c
cmp dword [edx + 0x14], 0
mov dword [ebp - 0x34], edx
je 0x482ae0
mov ecx, dword [edx + 0x1c]
cmp ecx, eax
ja 0x482adb
mov eax, ecx
mov dword [edx + 0x18], eax
jmp 0x482aef
mov edx, dword [edx + 4]
push 0
push eax
push edx
call fcn.006081d8
add esp, 0xc
mov ebx, dword [edi + 4]
mov edx, dword [edi + 0xc]
cmp ebx, edx
je 0x482e07
mov ecx, dword [edi + 8]
mov eax, dword [edi]
cmp ecx, eax
je 0x482e07
cmp word [edi + 0x10], 4
ja 0x482e07
mov esi, dword [ebp + 0xc]
sub edx, ebx
sub ecx, eax
mov ebx, esi
call fcn.00479fc0
test eax, eax
jne 0x482dda
cmp word [edi + 0x10], 4
jae 0x482b5a
or ecx, 0xffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
or edx, ecx
or esi, ecx
or ebx, ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov esi, 0xff000000
call fcn.004798e0
mov esi, ebx
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
cmp byte [ebp - 5], 0
mov dword [ebp - 0x38], ecx
je 0x482b80
movzx eax, word [edi + 0x10]
imul eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x482b85
mov dword [ebp - 0x28], ecx
mov eax, ecx
xor ebx, ebx
add eax, eax
mov dword [ebp - 0x2c], ebx
call fcn.00616f40
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6f524c], ebx
mov dword [ebp - 0x10], eax
je 0x482bb9
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0047cfb0
mov ecx, dword [ebp - 0x14]
jmp 0x482bc1
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
cmp word [edi + 0x10], bx
mov dword [ebp - 0x24], ebx
jbe 0x482db1
mov edi, edi
cmp ecx, ebx
je 0x482bdc
cmp dword [ecx], ebx
jne 0x482df0
mov eax, dword [edi + 0x14]
mov edx, dword [ebp - 0x24]
movsx eax, word [eax + edx*2]
cmp eax, 3
mov dword [ebp - 0xc], ebx
ja case.default.0x482bee
jmp dword [eax*4 + 0x482e38]
mov dword [ebp - 0xc], 3
jmp case.default.0x482bee
mov dword [ebp - 0xc], 2
jmp case.default.0x482bee
mov dword [ebp - 0xc], 1
jmp case.default.0x482bee
mov dword [ebp - 0xc], ebx
cmp byte [ebp - 5], 0
je 0x482c1d
cmp edx, ebx
jne 0x482c71
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x14], 0
lea ebx, [edi + 0x54]
je 0x482c3f
mov eax, 2
mov edi, ecx
call fcn.00410220
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
shr eax, 1
jmp 0x482c58
mov eax, dword [ecx + 4]
test eax, eax
je 0x482c56
push eax
push 1
push 2
push ebx
call fcn.0060860a
add esp, 0x10
jmp 0x482c58
xor eax, eax
cmp eax, 1
jne 0x482dff
mov cx, word [ebx]
mov edx, dword [ebp - 0x24]
rol cx, 8
mov word [ebx], cx
mov ecx, dword [ebp - 0x14]
movzx eax, word [edi + 0x54]
cmp ax, 1
jne 0x482d60
cmp dword [ebp - 0x1c], 0
je 0x482e0e
cmp byte [ebp - 5], 0
je 0x482c97
test edx, edx
jne 0x482d18
xor esi, esi
cmp dword [ebp - 0x28], esi
jbe 0x482d15
mov ebx, dword [ebp - 0x1c]
jmp 0x482ca6
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x482cb3
cmp dword [ecx], 0
jne 0x482df0
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x14], 0
je 0x482ccf
mov eax, 2
mov edi, ecx
call fcn.00410220
mov edi, dword [ebp - 0x20]
shr eax, 1
jmp 0x482ce8
mov eax, dword [ecx + 4]
test eax, eax
je 0x482ce6
push eax
push 1
push 2
push ebx
call fcn.0060860a
add esp, 0x10
jmp 0x482ce8
xor eax, eax
cmp eax, 1
jne 0x482dff
mov dx, word [ebx]
rol dx, 8
movzx eax, dx
cmp ax, word [ebp - 0x2c]
mov word [ebx], dx
jbe 0x482d0a
movzx eax, ax
mov dword [ebp - 0x2c], eax
add esi, 1
add ebx, 2
cmp esi, dword [ebp - 0x28]
jb 0x482ca3
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 8]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ecx + edx*4]
push eax
mov eax, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0xc]
add ecx, edx
push eax
call fcn.00482330
mov ebx, eax
test ebx, ebx
jne 0x482e1d
cmp byte [ebp - 5], al
je 0x482d97
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
lea eax, [ecx + edx*2]
mov dword [ebp - 0x1c], eax
jmp 0x482d97
test ax, ax
jne 0x482dff
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
mov edx, dword [esi + 0x10]
mov edi, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0xc]
push eax
add edx, ecx
push edx
call fcn.00482530
mov edi, eax
test edi, edi
jne 0x482e29
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
movzx edx, word [edi + 0x10]
mov ecx, dword [ebp - 0x14]
add eax, 1
xor ebx, ebx
cmp eax, edx
mov dword [ebp - 0x24], eax
jl 0x482bd0
cmp byte [ebp + 0x10], 0
je 0x482dc6
cmp word [edi + 0x10], 4
jne 0x482dc6
call fcn.0047c590
mov ecx, dword [ebp - 0x14]
cmp dword [0x6f524c], ebx
je 0x482dd8
mov eax, dword [ebp - 0x10]
push eax
push ecx
call fcn.0047d2c0
xor eax, eax
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x18]
call fcn.00402a90
mov eax, 0xf4242
jmp 0x482dda
lea eax, [ebp - 0x18]
call fcn.00402a90
mov eax, 3
jmp 0x482dda
lea eax, [ebp - 0x18]
call fcn.00402a90
mov eax, 4
jmp 0x482dda
lea eax, [ebp - 0x18]
call fcn.00402a90
mov eax, ebx
jmp 0x482dda
lea eax, [ebp - 0x18]
call fcn.00402a90
mov eax, edi
jmp 0x482dda