Function at 0x419370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12fc
call fcn.00424cd0
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x230]
push ecx
push 0x437c4c
mov dword [ebp - 0x354], eax
call fcn.0041ce70
push 0x437c50
lea edx, [ebp - 0x210]
push 2
push edx
call fcn.0041e9d0
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 0x1c
test eax, eax
jne 0x4197f8
push ebx
push 0x40
lea ecx, [ebp - 0x210]
push 0x437c5c
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x344], ebx
cmp ebx, edi
jne 0x41942a
lea edx, [ebp - 0x210]
push edx
push str.Cannot_open_Site_database_file:__s_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
push 0x14
call fcn.0040c090
add esp, 0x10
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push esi
push ebx
mov esi, 1
push esi
lea eax, [ebp - 0x340]
push 0x110
push eax
mov dword [0x551550], edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, esi
jne 0x41968a
mov ebx, dword [sym.imp.MSVCR100.dll_strncpy]
jmp 0x419460
lea ecx, [ebp - 0x340]
push 8
push ecx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x41965f
movsx edx, byte [ebp - 0x340]
push edx
call dword [sym.imp.MSVCR100.dll_isgraph]
add esp, 4
test eax, eax
je 0x41965f
cmp dword [0x551550], 0x3e7
jl 0x4194c2
push str.buildrata_ds:_Too_many_site_records_for_buffer.__Please_call_ESC_for_a_resolution_to_this_problem._n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
push 0x7c
call fcn.0040c090
add esp, 0xc
call fcn.0040c110
push 0x1c
call dword [sym.imp.MSVCR100.dll_malloc]
mov ecx, dword [0x551550]
lea edx, [ebp - 0x340]
push edx
mov dword [ecx*4 + 0x55dd80], eax
lea eax, [ebp - 0x10]
push 0x437cec
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
mov edx, dword [0x551550]
mov eax, dword [edx*4 + 0x55dd80]
push 8
lea ecx, [ebp - 0x10]
push ecx
push eax
call ebx
mov ecx, dword [0x551550]
mov edx, dword [ecx*4 + 0x55dd80]
lea eax, [ebp - 0x29f]
push 3
push eax
mov dword [edx + 8], esi
call fcn.0041cbd0
add esp, 0x24
test eax, eax
je 0x41953d
mov ecx, dword [0x551550]
mov edx, dword [ecx*4 + 0x55dd80]
mov dword [edx + 8], edi
jmp 0x41964c
xor eax, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
push 3
lea eax, [ebp - 0x29f]
push eax
lea ecx, [ebp - 0x10]
push ecx
call ebx
mov al, byte [ebp - 0x10]
add esp, 0xc
mov byte [ebp - 0xd], 0
cmp al, 0x31
jne 0x419580
mov edx, esi
mov word [ebp - 0x216], dx
jmp 0x4195c5
cmp al, 0x32
jne 0x419592
mov eax, 4
mov word [ebp - 0x216], ax
jmp 0x4195c5
cmp al, 0x33
jne 0x4195a4
mov ecx, 7
mov word [ebp - 0x216], cx
jmp 0x4195c5
cmp al, 0x34
jne 0x4195b6
mov edx, 0xa
mov word [ebp - 0x216], dx
jmp 0x4195c5
mov eax, dword [0x551550]
mov ecx, dword [eax*4 + 0x55dd80]
mov dword [ecx + 8], edi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xf]
mov edx, esi
push str._2hd
push ecx
mov word [ebp - 0x214], dx
call dword [sym.imp.MSVCR100.dll_sscanf]
movsx edx, word [ebp - 0x220]
push edx
call fcn.0041ce30
movsx ecx, word [ebp - 0x214]
movsx edx, word [ebp - 0x216]
mov word [ebp - 0x220], ax
push ecx
cwde
push edx
push eax
call fcn.0041cdc0
mov ecx, dword [0x551550]
mov word [ebp - 0x21e], ax
mov eax, dword [ecx*4 + 0x55dd80]
mov edx, dword [ebp - 0x220]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x21c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x218]
mov dword [eax + 0x14], edx
mov cx, word [ebp - 0x214]
add esp, 0x1c
mov word [eax + 0x18], cx
mov eax, dword [0x551550]
mov dword [eax*4 + 0x55dd84], edi
add eax, esi
mov dword [0x551550], eax
mov edx, dword [ebp - 0x344]
push edx
push esi
lea eax, [ebp - 0x340]
push 0x110
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x419460
mov ebx, dword [ebp - 0x344]
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
push 0x55dd80
mov dword [0x55c780], edi
call fcn.00418c10
mov ebx, eax
add esp, 8
mov dword [ebp - 0x358], ebx
cmp ebx, edi
jle 0x4196b9
push ebx
call fcn.00417f70
add esp, 4
lea ecx, [ebp - 0x12fc]
push ecx
call fcn.00418430
xor esi, esi
add esp, 4
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x350], esi
mov dword [ebp - 0x348], edi
cmp eax, edi
jle 0x4197e4
mov ebx, dword [sym.imp.MSVCR100.dll_strncmp]
mov edx, dword [ebp - 0x348]
mov edi, dword [ebp + edx*4 - 0x12fc]
test esi, esi
je 0x419734
push 4
push edi
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x419734
push 8
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x419734
push 8
add edi, 0xc
lea edx, [esi + 0xc]
push edi
push edx
call ebx
add esp, 0xc
test eax, eax
je 0x419790
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp + eax*4 - 0x12fc]
push ecx
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x34c]
push eax
call fcn.004177a0
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + ecx*4 - 0x12fc]
mov esi, dword [ebp - 0x350]
push 1
push 1
push edx
lea eax, [ebp - 0x344]
push eax
xor edi, edi
push esi
mov dword [ebp - 0x344], edi
call fcn.00418ac0
mov ecx, dword [ebp - 0x344]
add esp, 0x20
mov dword [ecx + 0x70], edi
jmp 0x4197bf
mov edx, dword [ebp - 0x348]
mov eax, dword [ebp + edx*4 - 0x12fc]
push 1
push 0
push eax
lea ecx, [ebp - 0x344]
push ecx
push esi
call fcn.00418ac0
mov edx, dword [ebp - 0x344]
add esp, 0x14
mov dword [edx + 0x70], 0
mov eax, dword [ebp - 0x348]
inc eax
mov dword [ebp - 0x348], eax
cmp eax, dword [ebp - 0x35c]
jl 0x4196f0
mov edi, dword [ebp - 0x34c]
mov ebx, dword [ebp - 0x358]
push ebx
push edi
call fcn.004178a0
mov eax, dword [ebp - 0x354]
add esp, 8
pop esi
mov dword [eax], edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004248f0
mov esp, ebp
pop ebp
ret