Function at 0x415dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4282ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
mov eax, dword [0x434110]
push ebx
push esi
push edi
mov dword [esp + 0x2ec], eax
mov eax, dword [ebp + 8]
push 0x42baa4
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
je 0x4161bd
mov ebx, dword [sym.imp.MSVCR71.dll_fscanf]
mov byte [esp + 0xe8], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0xe9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.GameVer
push esi
stosb byte es:[edi], al
call ebx
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00404bb0
mov edi, dword [ebp + 0xc]
add esp, 0x10
lea eax, [esp + 0xe8]
push eax
mov ecx, edi
call dword [0x42a58c]
lea ecx, [edi + 0x1c]
push ecx
push str.ver_d_n_n
push esi
call ebx
add esp, 0xc
lea ecx, [edi + 0x20]
call fcn.00413e10
lea edx, [esp + 0x14]
push edx
push str.filenum_d_n
xor edi, edi
push esi
mov dword [esp + 0x20], edi
call ebx
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x415fdc
jmp 0x415eb0
xor edi, edi
jmp 0x415eb0
push 0x42af8c
lea ecx, [esp + 0x24]
call dword [0x42a488]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x300], edi
call dword [0x42a484]
push str.Crash
lea ecx, [esp + 0x7c]
mov byte [esp + 0x300], 1
mov dword [esp + 0x78], edi
call dword [0x42a488]
mov dword [esp + 0x94], edi
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2fc], 3
call dword [0x42a47c]
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00404bb0
add esp, 8
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x5c]
call dword [0x42a58c]
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xe8]
push ecx
push str.Md5_s_n
push esi
call ebx
lea edx, [esp + 0x80]
push edx
push str.size_d_n_n
push esi
call ebx
add esp, 0x18
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x7c]
call dword [0x42a58c]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
call fcn.00415520
lea ecx, [esp + 0x78]
mov dword [esp + 0x2fc], 4
call dword [0x42a47c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x2fc], 0xffffffff
call dword [0x42a47c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x415ea0
lea edx, [esp + 0xe8]
push edx
xor eax, eax
push str.download_s_n
mov ecx, 0x80
lea edi, [esp + 0xf0]
push esi
rep stosd dword es:[edi], eax
call ebx
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esp + 0xe8]
push eax
add ecx, 0x40
call dword [0x42a58c]
mov al, byte [ebp + 0x10]
test al, al
je 0x4161b3
mov ecx, dword [ebp + 0xc]
add ecx, 0x30
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ecx
call fcn.00413e10
lea ecx, [esp + 0xc]
push ecx
push str.vfilenum_d_n
push esi
call ebx
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x4161b3
jmp 0x416060
xor edi, edi
jmp 0x416060
mov al, byte [0x434254]
test al, al
jne 0x4161b3
push 0x42af8c
lea ecx, [esp + 0x40]
call dword [0x42a488]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x300], 5
call dword [0x42a484]
push str.Crash
lea ecx, [esp + 0xc4]
mov byte [esp + 0x300], 6
mov dword [esp + 0xc0], edi
call dword [0x42a488]
mov dword [esp + 0xdc], edi
mov byte [esp + 0xe0], 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2fc], 8
call dword [0x42a47c]
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00404bb0
add esp, 8
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0xa4]
call dword [0x42a58c]
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe8]
push eax
push str.Md5_s_n
push esi
call ebx
lea ecx, [esp + 0xc8]
push ecx
push str.size_d_n_n
push esi
call ebx
add esp, 0x18
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0xc4]
call dword [0x42a58c]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xa0]
push eax
call fcn.00415520
lea ecx, [esp + 0xc0]
mov dword [esp + 0x2fc], 9
call dword [0x42a47c]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x2fc], 0xffffffff
call dword [0x42a47c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x416055
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ec]
call fcn.00425e4e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret