Function at 0x407d06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448735
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100e8
call fcn.0043f800
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, esi
mov dword [ebp - 0x100b8], esi
call fcn.00408170
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x407e2a
cmp dword [esi + 0x54], 8
jb 0x407d61
mov eax, dword [esi + 0x40]
jmp 0x407d64
lea eax, [esi + 0x40]
push eax
lea eax, [esi + 0x7a4]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00405e08
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x100b0], edi
mov dword [ebp - 0x100ac], edi
jae 0x407d93
lea eax, [ebp - 0x50]
cmp eax, edi
je 0x407da9
push eax
lea ebx, [ebp - 0x100b0]
call fcn.004071bc
test eax, eax
jne 0x407dac
xor edi, edi
push edi
jmp 0x407e20
xor ebx, ebx
cmp dword [ebp - 0x100ac], ebx
jl 0x407e1f
jg 0x407dc0
cmp dword [ebp - 0x100b0], ebx
jbe 0x407e1f
mov eax, dword [esi + 0x735]
cmp dword [ebp - 0x100b0], eax
jne 0x407e1f
cmp dword [ebp - 0x100ac], ebx
jne 0x407e1f
cmp dword [ebp - 0x3c], 8
mov ecx, dword [ebp - 0x50]
jae 0x407de2
lea ecx, [ebp - 0x50]
push esi
lea edx, [ebp - 0x38]
call fcn.00407043
test eax, eax
je 0x407e1f
push 0x20
lea edi, [esi + 0x739]
lea eax, [ebp - 0x38]
push edi
push eax
mov byte [ebp - 0x18], bl
call fcn.0043dc00
add esp, 0xc
test eax, eax
je 0x407e46
push edi
lea eax, [ebp - 0x38]
push eax
push str.check_md5_failed_local_s__server_s_.
push 2
call fcn.00409217
add esp, 0x10
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004022b6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042d4ab
leave
ret
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x407e52
lea eax, [ebp - 0x50]
push 0x44da38
push eax
call fcn.0042d580
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x100a4], eax
jne 0x407e87
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x407e75
lea eax, [ebp - 0x50]
push eax
push str.open_resource_list_file__s__failed_.
push 2
call fcn.00409217
add esp, 0xc
jmp 0x407e1f
mov eax, dword [ebp - 0x100b0]
inc eax
push eax
call fcn.0042cfe8
mov edi, eax
cmp edi, ebx
pop ecx
push dword [ebp - 0x100a4]
mov dword [ebp - 0x100b4], edi
jne 0x407eb2
call fcn.0042d82b
pop ecx
jmp 0x407e1f
push dword [ebp - 0x100b0]
push 1
push edi
call fcn.0042fa71
add esp, 0x10
cmp eax, dword [ebp - 0x100b0]
je 0x407eda
push edi
call fcn.0042f0fb
pop ecx
push dword [ebp - 0x100a4]
jmp 0x407ea7
push dword [ebp - 0x100a4]
call fcn.0042d82b
mov eax, dword [ebp - 0x100b0]
mov byte [eax + edi], bl
lea eax, [ebp - 0x10064]
mov dword [ebp - 0x10070], eax
neg eax
and eax, 3
lea eax, [ebp + eax - 0x10064]
mov dword [ebp - 0x1006c], eax
lea eax, [ebp - 0x64]
pop ecx
mov dword [ebp - 0x100a0], ebx
mov dword [ebp - 0x1009c], ebx
mov dword [ebp - 0x10090], ebx
mov dword [ebp - 0x1008c], ebx
mov dword [ebp - 0x10088], ebx
mov dword [ebp - 0x10080], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x10068], eax
push edi
lea eax, [ebp - 0x100a0]
mov byte [ebp - 4], 2
call fcn.00409f30
lea eax, [ebp - 0x100a0]
push eax
mov ebx, str.ResourceList
mov dword [ebp - 4], 1
call fcn.00409572
xor ebx, ebx
cmp eax, ebx
jne 0x407f81
lea esi, [ebp - 0x10070]
mov byte [ebp - 4], bl
call fcn.004095cf
jmp 0x407e1f
mov eax, dword [eax + 0x18]
cmp eax, ebx
mov dword [ebp - 0x100ac], eax
jne 0x407fbc
push edi
call fcn.0042f0fb
pop ecx
lea esi, [ebp - 0x10070]
mov byte [ebp - 4], bl
call fcn.004095cf
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004022b6
xor eax, eax
inc eax
jmp 0x407e2c
mov esi, dword [ebp - 0x100b8]
push 0x60
call fcn.0042dbee
pop ecx
mov dword [ebp - 0x100a4], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x407fe4
push eax
mov edx, esi
call fcn.0040e646
mov edi, eax
mov dword [ebp - 0x100a4], edi
jmp 0x407fec
mov dword [ebp - 0x100a4], ebx
mov edi, ebx
cmp edi, ebx
mov byte [ebp - 4], 1
je 0x40811d
push dword [ebp - 0x100ac]
mov ecx, edi
call fcn.0040e708
test eax, eax
je 0x40811d
cmp dword [edi + 0x20], 8
jb 0x408018
mov eax, dword [edi + 0xc]
jmp 0x40801b
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x100e4]
call fcn.00401c6e
lea eax, [ebp - 0x100e4]
push eax
lea eax, [ebp - 0x100c0]
lea ebx, [esi + 0x7f8]
push eax
mov byte [ebp - 4], 5
call fcn.004093c4
push 0
push 1
lea esi, [ebp - 0x100e4]
mov byte [ebp - 4], 1
call fcn.004022b6
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x100c8]
lea esi, [ebp - 0x100c0]
mov dword [ebp - 0x100c4], eax
mov dword [ebp - 0x100c8], ebx
call fcn.00409557
test al, al
je 0x4080cb
mov esi, dword [ebp - 0x100a4]
cmp dword [esi + 0x20], 8
jb 0x40808b
mov eax, dword [esi + 0xc]
jmp 0x40808e
lea eax, [esi + 0xc]
lea ecx, [ebp - 0x100e8]
call fcn.00401c6e
mov dword [ebp - 0x100cc], esi
lea eax, [ebp - 0x100e8]
push eax
push ebx
lea ebx, [ebp - 0x100f4]
mov byte [ebp - 4], 6
call fcn.004092df
push 0
push 1
lea esi, [ebp - 0x100e8]
mov byte [ebp - 4], 1
call fcn.004022b6
jmp 0x4080f9
lea esi, [ebp - 0x100c0]
call fcn.004094ea
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4080e5
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea esi, [ebp - 0x100c0]
call fcn.004094ea
mov ecx, dword [ebp - 0x100a4]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0x100ac]
mov eax, dword [eax + 0x2c]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x100ac], eax
jne 0x407fb6
mov edi, dword [ebp - 0x100b4]
jmp 0x407f8e
push dword [ebp - 0x100b4]
call fcn.0042f0fb
pop ecx
jmp 0x407f6e