Function at 0x416420
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x420100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x4f8]
push edi
test eax, eax
mov dword [esp + 0x14], ebx
jne 0x416460
mov dword [0x426fe4], 3
mov eax, 0x80004005
jmp 0x416883
mov eax, dword [esp + 0x74]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416495
mov dword [0x426fe4], 0x1b
mov eax, 0x80004005
jmp 0x416883
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [edi + 1]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x18]
mov ebp, eax
push 0
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], edi
je 0x4164e8
push ebp
call fcn.0041e706
add esp, 4
mov dword [0x426fe4], 0x1c
mov eax, 0x80004005
jmp 0x416883
lea ecx, [esp + 0x1c]
call fcn.0041cc10
xor edi, edi
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], edi
call fcn.0041cd40
push ebp
call fcn.0041e706
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0041d6a0
cmp eax, edi
je 0x416557
push str.ACDDatabase
lea ecx, [esp + 0x20]
call fcn.0041d6a0
mov ecx, eax
call fcn.0041c830
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x41657c
lea ecx, [esp + 0x1c]
call fcn.0041d6a0
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x20]
push str.ACDDatabase
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x41657c
lea ecx, [esp + 0x1c]
mov dword [0x426fe4], 0x1d
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041cc80
mov eax, 0x80004005
jmp 0x416883
mov dword [ebx + 0x564], 1
mov eax, dword [ebx + 0x564]
cmp eax, edi
je 0x4165c5
mov eax, dword [ebx + 0x55c]
xor esi, esi
cmp eax, edi
jle 0x4165c5
cmp esi, eax
jge 0x4165af
cmp esi, edi
jl 0x4165af
mov eax, dword [ebx + 0x558]
mov eax, dword [eax + esi*4]
jmp 0x4165b1
xor eax, eax
push eax
call fcn.0041e706
mov eax, dword [ebx + 0x55c]
add esp, 4
inc esi
cmp esi, eax
jl 0x4165a0
mov eax, dword [ebx + 0x558]
push eax
call fcn.0041e706
push 0x80
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 0x558], eax
mov dword [ebx + 0x55c], edi
mov dword [ebx + 0x560], 0x1f
mov dword [ebx + 0x568], 0x40
call fcn.0041ca70
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], ecx
push eax
lea ecx, [esp + 0x44]
call fcn.004171a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 1
mov dword [esp + 0x3c], edi
call fcn.00417210
test eax, eax
je 0x41678c
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x41678a
mov eax, dword [edi + 0x20]
mov esi, str.ACDCategoryTree
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [esi]
jne 0x416673
test dl, dl
je 0x41666f
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x416673
add eax, 2
add esi, 2
test dl, dl
jne 0x41664f
xor eax, eax
jmp 0x416678
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416769
mov ecx, edi
call fcn.0041ca70
mov edx, dword [eax]
add eax, 4
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], edx
call fcn.004171a0
mov ebp, dword [esp + 0x30]
xor edx, edx
test ebp, ebp
mov byte [esp + 0x6c], 2
mov dword [esp + 0x28], edx
je 0x416728
mov eax, dword [esp + 0x34]
sub eax, ebp
test eax, 0xfffffffc
je 0x416728
mov edi, dword [ebp]
test edi, edi
je 0x416728
mov eax, dword [edi + 0x20]
mov esi, str.Category
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4166ed
test cl, cl
je 0x4166e9
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4166ed
add eax, 2
add esi, 2
test cl, cl
jne 0x4166c9
xor eax, eax
jmp 0x4166f2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41670a
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
call fcn.00416f00
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
inc edx
test ebp, ebp
mov dword [esp + 0x28], edx
je 0x416728
mov ecx, dword [esp + 0x34]
sub ecx, ebp
sar ecx, 2
cmp edx, ecx
jae 0x416728
mov edi, dword [ebp + edx*4]
test edi, edi
jne 0x4166c1
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push edx
push ebp
mov byte [esp + 0x74], 1
call fcn.00417290
mov eax, dword [esp + 0x30]
push eax
call fcn.0041e706
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
inc ebp
test ecx, ecx
mov dword [esp + 0x3c], ebp
je 0x41678a
mov edx, dword [esp + 0x48]
sub edx, ecx
sar edx, 2
cmp ebp, edx
jae 0x41678a
mov edi, dword [ecx + ebp*4]
test edi, edi
jne 0x416647
xor edi, edi
mov ecx, dword [esp + 0x10]
call fcn.0041ca70
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x50], ecx
push eax
lea ecx, [esp + 0x58]
call fcn.004171a0
mov ebp, dword [esp + 0x58]
xor edx, edx
cmp ebp, edi
mov byte [esp + 0x6c], 3
mov dword [esp + 0x50], edx
je 0x41683f
mov eax, dword [esp + 0x5c]
sub eax, ebp
test eax, 0xfffffffc
je 0x41683f
mov edi, dword [ebp]
test edi, edi
je 0x41683d
mov eax, dword [edi + 0x20]
mov esi, str.ACDFile
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4167ff
test cl, cl
je 0x4167fb
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4167ff
add eax, 2
add esi, 2
test cl, cl
jne 0x4167db
xor eax, eax
jmp 0x416804
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41681f
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.004168a0
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
inc edx
test ebp, ebp
mov dword [esp + 0x50], edx
je 0x41683d
mov eax, dword [esp + 0x5c]
sub eax, ebp
sar eax, 2
cmp edx, eax
jae 0x41683d
mov edi, dword [ebp + edx*4]
test edi, edi
jne 0x4167d3
xor edi, edi
push ebp
mov dword [0x426fe4], edi
call fcn.0041e706
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], edi
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.0041e706
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041cc80
xor eax, eax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4