Function at 0x415650
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4a057c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x4a703c]
mov dword [esp + 0x10], ecx
mov cx, word [0x4a7040]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x28], cx
mov dword [esp + 0x24], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
xor bl, bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, 0x4a7064
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x13], 0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x1c], 0
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a7018
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a7014
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a7014
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
push eax
and ecx, 3
lea eax, [esp + 0x40]
push connect
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, 0xffffffff
mov ebp, eax
je 0x4157c6
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
push 0x4a7008
push ecx
call fcn.0049274b
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x415a87
lea edi, [ebp + 1]
push edi
call fcn.00491cd3
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x1c], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
push edi
push 1
push ebp
push esi
call fcn.0049275e
push edi
call fcn.00492564
push 0x114
call fcn.00491cd3
add esp, 0x1c
mov dword [esp + 0x14], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x234], ecx
je 0x41584c
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, eax
call fcn.00490ba0
mov dword [esp + 0x14], eax
jmp 0x415850
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
or ebp, 0xffffffff
mov ecx, edi
mov dword [esp + 0x234], ebp
call fcn.00490c00
mov esi, eax
test esi, esi
je 0x415aa9
mov al, byte [esp + 0x13]
test al, al
je 0x415a3f
movsx eax, al
dec eax
jne case.default.0x415892
movsx eax, bl
dec eax
cmp eax, 3
ja case.default.0x415892
jmp dword [eax*4 + 0x415ad8]
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4158d1
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x4158c1
cmp al, 0x30
jl 0x415a6c
cmp al, 0x39
jg 0x415a6c
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4158aa
push esi
call fcn.00492900
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, dword [ebx + eax*4 + 0x4b474]
test ecx, ecx
jne 0x415aa2
push 0x28
call fcn.00491cd3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x234], 1
je 0x415915
mov ecx, eax
call fcn.00490480
mov edi, eax
jmp 0x415917
xor edi, edi
push esi
mov dword [esp + 0x238], ebp
call fcn.00492900
push esi
mov dword [ebx + eax*4 + 0x4b474], edi
call fcn.00492900
add esp, 8
mov dword [esp + 0x1c], eax
mov bl, 2
jmp case.default.0x415892
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
mov ecx, dword [ebx + edx*4 + 0x4b474]
add ecx, 4
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x14], al
mov ecx, ebp
repne scasb al, byte es:[edi]
mov edi, dword [ebx + edx*4 + 0x4b474]
mov bl, 3
not ecx
dec ecx
add edi, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x415892
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4159c4
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x4159b4
cmp al, 0x30
jl 0x415aa2
cmp al, 0x39
jg 0x415aa2
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x41599d
push esi
call fcn.00492900
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 4
mov bl, 4
mov ecx, dword [ecx + edx*4 + 0x4b474]
mov dword [ecx + 0x20], eax
jmp case.default.0x415892
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x415a1b
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x415a0b
cmp al, 0x30
jl 0x415aa2
cmp al, 0x39
jg 0x415aa2
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4159f4
push esi
call fcn.00492900
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
mov byte [esp + 0x13], 0
mov edx, dword [edx + ecx*4 + 0x4b474]
xor bl, bl
mov byte [edx + 0x24], al
jmp case.default.0x415892
mov ecx, 5
mov edi, 0x4a705c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne case.default.0x415892
mov byte [esp + 0x13], 1
mov bl, 1
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00490c00
mov esi, eax
test esi, esi
je 0x415aa9
jmp 0x41586f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491cc8
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x415a87
mov edx, dword [ecx]
push 1
call dword [edx]
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
mov eax, dword [esp + 0x18]
push eax
jmp 0x415a71
test edi, edi
je 0x415ab5
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491cc8
mov al, byte [esp + 0x17]
add esp, 4
test al, al
jne 0x415a87
test bl, bl
jne 0x415a87
mov eax, 1
jmp 0x415a89