Function at 0x439cc0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5125b0
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x82d0
call fcn.004df4b0
mov eax, dword [0x56fcd4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x82b4], eax
mov ecx, dword [ebx + 0x24]
movups xmm0, xmmword [ebx + 8]
mov edx, dword [eax + 0x70]
mov esi, dword [ebx + 0x20]
mov dword [ebp - 0x82a0], ecx
lea ecx, [eax + 0x60]
mov eax, closesocket
mov dword [ebp - 0x82ac], esi
movups xmmword [ebp - 0x30], xmm0
sub eax, edx
movq xmm0, qword [ebx + 0x18]
movq qword [ebp - 0x20], xmm0
cmp eax, 6
jb 0x43a403
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x439d51
mov eax, dword [ecx]
push 6
push str.__temp
push edx
push eax
push ecx
push dword [ebp - 0x82ac]
lea ecx, [ebp - 0x48]
call fcn.0041fc10
lea eax, [ebp - 0x8290]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x828c]
mov dword [ebp - 0x8290], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x828c], 1
push eax
lea eax, [ebp - 0x82c8]
push eax
call fcn.00415a30
add esp, 0x10
mov ecx, dword [esi]
push 0
push 0
push 0
mov byte [ebp - 4], 1
call fcn.0044b870
movzx eax, word [ebp - 0x2e]
xor edx, edx
movzx ecx, byte [ebp - 0x30]
mov edi, dword [ebp - 0x24]
imul ecx, eax
mov eax, edi
div ecx
mov eax, edx
xor edx, edx
mov dword [ebp - 0x82b0], eax
test eax, eax
mov eax, edi
jne 0x439dde
div ecx
jmp 0x439de1
div ecx
inc eax
movzx esi, word [ebp - 0x2c]
xor edx, edx
div esi
mov dword [ebp - 0x828c], esi
mov esi, eax
test edx, edx
lea eax, [esi + 1]
cmovne esi, eax
mov eax, dword [ebp - 0x828c]
cmovne eax, edx
mov dword [ebp - 0x8290], esi
mov dword [ebp - 0x828c], eax
xor edx, edx
mov eax, edi
div ecx
cmp dword [ebp - 0x82b0], 0
mov ecx, eax
je 0x439e22
lea ecx, [eax + 1]
movzx eax, byte [ebp - 0x1c]
imul eax, ecx
mov dword [ebp - 0x82b0], eax
mov dword [ebp - 0x8294], eax
mov eax, dword [ebp - 0x82a0]
mov esi, dword [eax]
test esi, esi
je 0x43a3fc
mov cl, byte [eax + 4]
test cl, cl
je 0x439e64
cmp byte [esi + 0x6c], 0
jne 0x43a3fc
test cl, cl
je 0x439e64
cmp byte [esi + 0x6c], 0
jne 0x43a3fc
lea edi, [esi + 0x14]
mov byte [ebp - 0x82a0], 0
push edi
mov dword [ebp - 0x82a4], edi
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43a408
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x43a40f
mov byte [ebp - 0x82a0], 1
cmp byte [esi + 0x75], 0
mov byte [ebp - 4], 2
jne 0x43a41a
mov eax, dword [esi]
lea ecx, [ebp - 0x82a4]
mov edi, dword [ebp - 0x82b0]
push 0
push ecx
mov ecx, esi
mov dword [esi + 8], edi
call dword [eax + 0x14]
cmp byte [ebp - 0x82a0], 0
mov byte [ebp - 4], 1
je 0x439edc
push dword [ebp - 0x82a4]
call fcn.004dd29d
add esp, 4
call fcn.00444560
mov dword [ebp - 0x82a8], 0
mov dword [ebp - 0x82a4], 0
movq xmm0, qword [ebp - 0x82a8]
mov ecx, dword [eax + 0x114]
lea eax, [ebp - 0x8294]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x13
push str.file:_pkg_size:
push 2
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00414ce0
lea eax, [ebp - 0x82c0]
push edi
push eax
call fcn.004429e0
add esp, 8
movzx edi, word [ebp - 0x2c]
lea ecx, [ebp - 0x150]
push 2
mov byte [ebp - 4], 3
call fcn.00422420
mov eax, dword [ebp - 0x8290]
xor esi, esi
mov byte [ebp - 4], 4
test eax, eax
je 0x43a012
lea edx, [eax - 1]
mov dword [ebp - 0x8294], edx
nop
mov eax, dword [ebp - 0x828c]
cmp esi, edx
movzx ecx, ax
movzx eax, di
cmovne ecx, eax
mov dword [ebp - 0x82d4], esi
mov eax, dword [ebp - 0x82b4]
mov dword [ebp - 0x82e0], eax
mov eax, dword [ebp - 0x82ac]
mov dword [ebp - 0x82dc], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x82d8], eax
lea eax, [ebp - 0x82c8]
mov dword [ebp - 0x82d0], eax
lea eax, [ebp - 0x82e0]
push eax
movzx edi, cx
lea eax, [ebp - 0x82a4]
push eax
lea ecx, [ebp - 0x150]
mov word [ebp - 0x82cc], di
call fcn.0040d0d0
mov ecx, dword [ebp - 0x82a4]
test ecx, ecx
je 0x439fff
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x439fff
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x439ff9
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x439ffd
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp - 0x8294]
inc esi
cmp esi, dword [ebp - 0x8290]
jb 0x439f70
lea eax, [ebp - 0xa4]
push eax
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43a408
cmp dword [ebp - 0x78], 0x7fffffff
jne 0x43a03e
mov dword [ebp - 0x78], closesocket
jmp 0x43a42b
mov eax, dword [ebp - 0x4c]
nop
test eax, eax
je 0x43a061
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004dd457
mov eax, dword [ebp - 0x4c]
add esp, 8
nop
test eax, eax
jne 0x43a046
lea eax, [ebp - 0xa4]
push eax
call fcn.004dd29d
movzx esi, word [ebp - 0x2e]
add esp, 4
mov ecx, dword [ebp - 0x82c8]
add esi, 0x20
mov dword [ebp - 0x8290], esi
push 0
push 0
push 0
call fcn.0044b870
push 0x7d00
lea eax, [ebp - 0x8288]
push 0
push eax
call fcn.004e1450
mov eax, dword [ebp - 0x82c0]
add esp, 0xc
mov ecx, dword [ebp - 0x82bc]
mov dword [ebp - 0x828c], eax
mov dword [ebp - 0x8294], ecx
cmp eax, ecx
je 0x43a1a3
mov edi, dword [ebp - 0x82c8]
mov ecx, dword [eax]
imul ecx, esi
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi]
je 0x43a220
push 0
push 0
push ecx
mov ecx, edi
call fcn.0044b870
lea esi, [edi + 0x20]
push esi
mov dword [ebp - 0x82a0], esi
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43a408
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x43a487
push 0
lea eax, [ebp - 0x82ac]
mov byte [ebp - 4], 7
push eax
push dword [ebp - 0x8290]
lea eax, [ebp - 0x8288]
mov dword [ebp - 0x82ac], 0
push eax
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a432
push esi
mov byte [ebp - 4], 4
call fcn.004dd29d
mov esi, dword [ebp - 0x8290]
push esi
lea eax, [esi + 2]
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x8288]
push eax
lea eax, [ebp - 0x588]
push eax
call fcn.004e0ed0
add esp, 0x10
lea eax, [ebp - 0x588]
push eax
mov eax, dword [ebp - 0x82b4]
mov ecx, dword [eax + 0x78]
call fcn.00413660
mov eax, dword [ebp - 0x828c]
add eax, 4
mov dword [ebp - 0x828c], eax
cmp eax, dword [ebp - 0x8294]
jne 0x43a0c4
call fcn.00444560
sub esp, 8
mov dword [ebp - 0x82a8], 0
mov dword [ebp - 0x82a4], 0
movq xmm0, qword [ebp - 0x82a8]
mov ecx, dword [eax + 0x114]
mov eax, esp
push 2
sub esp, 0xc
mov dword [eax], str.all_pkg_are_loaded.
mov dword [eax + 4], 0x13
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00445260
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 0xa
push eax
call fcn.004dd278
add esp, 4
test eax, eax
jne 0x43a408
cmp dword [ebp - 0xf8], 0x7fffffff
je 0x43a421
jmp 0x43a25d
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp - 0x180]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 5
push str.File_not_opened.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 6
jmp 0x43a46a
lea eax, [ebp - 0xcc]
mov byte [ebp - 0x128], 1
push eax
mov dword [ebp - 0x144], 0
call fcn.004dd332
lea eax, [ebp - 0xf4]
push eax
call fcn.004dd332
mov eax, dword [ebp - 0x150]
add esp, 8
cmp eax, dword [ebp - 0x14c]
je 0x43a2c4
nop word [eax + eax]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004dd457
mov eax, dword [ebp - 0x150]
add esp, 8
cmp eax, dword [ebp - 0x14c]
jne 0x43a2a0
lea eax, [ebp - 0x124]
push eax
call fcn.004dd29d
lea eax, [ebp - 0x74]
push eax
call fcn.004dd351
lea eax, [ebp - 0xa4]
push eax
call fcn.004dd22e
lea eax, [ebp - 0xcc]
push eax
call fcn.004dd351
lea eax, [ebp - 0xf4]
push eax
call fcn.004dd351
lea eax, [ebp - 0x124]
push eax
call fcn.004dd22e
add esp, 0x18
lea ecx, [ebp - 0x140]
call fcn.004261e0
lea ecx, [ebp - 0x150]
call fcn.004277e0
mov edx, dword [ebp - 0x82c0]
test edx, edx
je 0x43a37d
mov ecx, dword [ebp - 0x82b8]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x43a355
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a492
push ecx
push edx
call fcn.004dee43
add esp, 8
mov dword [ebp - 0x82c0], 0
mov dword [ebp - 0x82bc], 0
mov dword [ebp - 0x82b8], 0
mov esi, dword [ebp - 0x82c4]
test esi, esi
je 0x43a3a8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x43a3a8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x43a3a8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x43a3dc
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x43a3d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a492
push ecx
push edx
call fcn.004dee43
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004df28f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x20
push 4
call fcn.00437090
call fcn.00437700
push 5
call fcn.004dd640
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.004dd640
push 3
call fcn.00437090
mov dword [ebp - 0xf8], closesocket
push 6
call fcn.004dd640
call fcn.004eac8d
push dword [eax]
call fcn.004f2d21
add esp, 4
lea ecx, [ebp - 0x168]
push eax
call fcn.0041fa40
push eax
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 8
push str.Failed_to_read_from_file.
push eax
call fcn.00403560
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x82d4]
call fcn.00424bb0
push 0x552298
lea eax, [ebp - 0x82d4]
push eax
call fcn.004e084f
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.004dd640
call fcn.004eaaef
int3