Function at 0x446210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x54
push ebx
push edi
mov edi, dword [esp + 0x60]
xor ebx, ebx
test edi, edi
jne 0x44622a
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0x54
ret
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x44624a
or ebx, 0xffffffff
jmp 0x446272
mov eax, dword [edi]
lea edx, [esp + 8]
push edx
push eax
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x446263
or ebx, 0xffffffff
jmp 0x446272
cmp dword [esp + 8], 0x2014b50
je 0x446272
mov ebx, 0xffffff99
mov edx, dword [edi]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x446289
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x4462a0
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00445f40
add esp, 8
test eax, eax
je 0x4462b7
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x4462ce
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x4462e5
or ebx, 0xffffffff
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.00446550
mov edx, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.00445fd0
add esp, 0x10
test eax, eax
je 0x44630b
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x446322
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x446339
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x446350
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x446367
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00445f40
add esp, 8
test eax, eax
je 0x44637e
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x446395
or ebx, 0xffffffff
mov ecx, dword [edi]
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.00445f40
add esp, 8
test eax, eax
je 0x4463ac
or ebx, 0xffffffff
mov eax, dword [edi]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x4463c3
or ebx, 0xffffffff
mov edx, dword [edi]
lea ecx, [esp + 8]
push ecx
push edx
call fcn.00445fd0
add esp, 8
test eax, eax
je 0x4463da
or ebx, 0xffffffff
mov eax, dword [esp + 0x2c]
push ebp
test ebx, ebx
push esi
mov ebp, eax
jne 0x44649b
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x44642d
mov edx, dword [esp + 0x78]
cmp eax, edx
jae 0x446405
mov byte [eax + ecx], bl
mov eax, dword [esp + 0x34]
mov esi, eax
jmp 0x446407
mov esi, edx
test eax, eax
jbe 0x446427
test edx, edx
jbe 0x446427
mov eax, dword [edi]
push eax
push 1
push esi
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x446427
or ebx, 0xffffffff
sub ebp, esi
test ebx, ebx
jne 0x44649b
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x44649b
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x80]
cmp eax, esi
jae 0x446446
mov esi, eax
test ebp, ebp
je 0x446468
mov ecx, dword [edi]
push 1
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x38]
jne 0x446465
xor ebp, ebp
jmp 0x446468
or ebx, 0xffffffff
test eax, eax
jbe 0x446497
mov ecx, dword [esp + 0x80]
test ecx, ecx
jbe 0x446497
mov edx, dword [edi]
mov eax, dword [esp + 0x7c]
push edx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
mov eax, dword [esp + 0x38]
je 0x446497
or ebx, 0xffffffff
sub eax, esi
jmp 0x44649f
mov eax, dword [esp + 0x38]
add ebp, eax
test ebx, ebx
jne 0x446546
mov edi, dword [esp + 0x84]
test edi, edi
je 0x446525
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x88]
cmp eax, esi
jae 0x4464ca
mov byte [eax + edi], bl
mov esi, dword [esp + 0x3c]
test ebp, ebp
je 0x4464e8
mov ecx, dword [esp + 0x68]
push 1
push ebp
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4464e8
or ebx, 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x446521
mov eax, dword [esp + 0x88]
test eax, eax
jbe 0x446521
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
push ecx
push 1
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x446521
or ebx, 0xffffffff
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x54
ret
test ebx, ebx
jne 0x446546
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x446538
mov ecx, 0x14
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x446546
mov edx, dword [esp + 0x10]
mov dword [eax], edx
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x54
ret