Function at 0x402410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404468
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x407438]
mov edi, dword [ecx + 0x218]
lea eax, [ecx + 0x20c]
mov ebx, dword [eax]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], ebx
mov edx, dword [ebp + 8]
nop
mov eax, dword [ecx + 0x21c]
add eax, dword [ecx + 0x218]
cmp edi, eax
je 0x40266e
test ebx, ebx
jne 0x40247c
xor eax, eax
jmp 0x40247e
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
cmp edx, dword [eax + 0x18]
jb 0x402645
test ebx, ebx
jne 0x40249b
xor eax, eax
jmp 0x40249d
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
push dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
call fcn.004026b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0x405588
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov dword [ebp - 0x34], eax
xor edx, edx
test ebx, ebx
je 0x4024e3
mov eax, dword [ebx]
test eax, eax
je 0x4024e3
mov edx, dword [eax]
sub esp, 0xc
xor eax, eax
mov ecx, esp
test edx, edx
je 0x4024f9
mov edi, dword [edx]
test edi, edi
je 0x4024f6
mov eax, dword [edi]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test eax, eax
je 0x402517
mov eax, dword [eax]
test eax, eax
je 0x402517
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [edi + 1]
sub esp, 0xc
mov dword [ecx + 8], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
test edx, edx
je 0x40253d
mov eax, dword [edx]
test eax, eax
je 0x40253d
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x4c]
mov dword [ecx + 8], edi
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.00402a20
mov eax, dword [ebp - 0x4c]
cmp ebx, eax
je 0x402562
test eax, eax
je 0x402562
mov eax, dword [eax]
test eax, eax
je 0x402562
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x4025c9
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
lea esi, [ebx + 1]
push esi
call fcn.004033a4
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x34]
push esi
push 1
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
push edi
call dword [sym.imp.DecalNet.DLL_FeedPacketHandler]
add esp, 0x44
push edi
call fcn.004033ad
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edi, dword [ebp - 0x2c]
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x21c], 0
jne 0x4025e9
push 0
push str.D3D9_Container
push str.Container_is_done_feeding_packets.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402626
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40261c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402668
push edx
push ecx
call fcn.00403245
add esp, 8
mov ebx, dword [ebp - 0x38]
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x40245b
test ebx, ebx
jne 0x40264d
xor eax, eax
jmp 0x40264f
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x18], edx
ja 0x40266e
mov ecx, dword [ebp - 0x30]
jmp 0x402460
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403234
mov esp, ebp
pop ebp
ret 4