Function at 0x50d0f0
Capabilities:
Get file size

Disassembly:
sub esp, 0x920
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x91c], eax
push ebp
mov ebp, dword [esp + 0x928]
push esi
mov esi, dword [esp + 0x934]
push edi
push 0x207
lea eax, [esp + 0x19]
push 0
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x20], 0
call fcn.005dfd60
push 0x207
lea ecx, [esp + 0x22d]
push 0
push ecx
mov byte [esp + 0x234], 0
call fcn.005dfd60
add esp, 0x18
mov edi, 1
mov dword [esp + 0xc], edi
test ebp, ebp
je 0x50d8f8
cmp byte [ebp], 0
je 0x50d8f8
test esi, esi
je 0x50d170
mov byte [esi], 0
cmp byte [ebp + 1], 0x3a
jne 0x50d20c
movsx edx, byte [ebp]
push edx
call fcn.005e3ae6
add esp, 4
cmp eax, 0x41
je 0x50d19e
movsx eax, byte [ebp]
push eax
call fcn.005e3ae6
add esp, 4
cmp eax, 0x42
jne 0x50d20c
push 0x64d11c
push ebp
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50d1e6
push 0x64d118
push ebp
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50d1e6
push 0x64d114
push ebp
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50d1e6
push 0x64d110
push ebp
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50d20c
test esi, esi
je 0x50d1f2
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x91c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x920
ret
push ebx
mov ebx, dword [esp + 0x938]
cmp ebx, edi
jne 0x50d23c
push 0
push 0
push 0
push 0
push 0
push ebp
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50d25b
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x50d8c0
cmp ebx, 2
jne 0x50d25b
push ebp
call fcn.004ec720
add esp, 4
cmp eax, edi
jne 0x50d25b
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x50d8c0
push 0x208
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.004d90f0
lea edx, [esp + 0x24]
push 0x2c
push edx
mov byte [esp + 0x234], 0
call fcn.005e0940
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50d2a6
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x50d2a6
mov byte [esi], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.004db560
lea edx, [esp + 0x1c]
push edx
call fcn.004db630
lea eax, [esp + 0x20]
push 0x22
push eax
call fcn.005e2e42
add esp, 0x10
test eax, eax
je 0x50d3e6
cmp byte [esp + 0x18], 0x22
jne 0x50d3e6
add eax, 1
je 0x50d47c
cmp byte [eax], 0
je 0x50d47c
push 0x208
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004d90f0
lea edx, [esp + 0x24]
push 0x22
push edx
call fcn.005e2e42
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50d3e6
push 0x103
lea eax, [esp + 0x42d]
push 0
push eax
mov byte [esp + 0x434], 0
call fcn.005dfd60
add esp, 0xc
mov byte [esi], 0
cmp ebx, 1
jne 0x50d3e6
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jle 0x50d3e6
cmp byte [esp + eax + 0x14], 0x2e
je 0x50d3e6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x50d396
push 0x63fd64
lea ecx, [esp + 0x42c]
push ecx
jmp 0x50d3bc
cmp esi, 1
jne 0x50d3aa
push 0x631384
lea edx, [esp + 0x42c]
push edx
jmp 0x50d3bc
cmp esi, 2
jne 0x50d3be
push 0x63fd5c
lea eax, [esp + 0x42c]
push eax
call edi
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x438]
push 0
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x50d464
inc esi
cmp esi, 3
jl 0x50d370
lea ecx, [esp + 0x18]
push ecx
call fcn.004db3d0
add esp, 4
lea edx, [esp + 0x18]
push edx
call fcn.00502ab0
push 0
push 1
lea eax, [esp + 0x20]
push eax
call fcn.005127a0
call fcn.004d96c0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
je 0x50d49f
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push edx
call edi
lea eax, [esp + 0x220]
push 0x61b06c
push eax
call fcn.005e0a30
add esp, 8
test eax, eax
je 0x50d497
push 0
push 0x60c81c
lea ecx, [esp + 0x228]
push 0x61b06c
push ecx
call fcn.004e1b10
add esp, 0x10
jmp 0x50d49f
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x50d3e6
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x91c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x920
ret
mov byte [esp + 0x220], 0
lea edx, [esp + 0x18]
push edx
cmp ebx, 1
jne 0x50d88f
call fcn.0050d0a0
add esp, 4
cmp byte [esp + 0x220], 0
je 0x50d4cf
lea eax, [esp + 0x220]
push eax
call fcn.0050d0a0
add esp, 4
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d5c7
lea edx, [esp + 0x18]
push 0x2f
push edx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d5c7
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x50d5c7
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.005e0940
lea edx, [esp + 0x20]
push 0x2f
push edx
mov esi, eax
call fcn.005e0940
add esp, 0x10
cmp esi, eax
jbe 0x50d5c7
push 0x3ff
lea eax, [esp + 0x531]
push 0
push eax
mov byte [esp + 0x538], 0
call fcn.005dfd60
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x530]
push edx
call edi
push 0
push 0x66da34
lea eax, [esp + 0x534]
push 0x60cf1c
push eax
call fcn.004e1b10
lea ecx, [esp + 0x53c]
push ecx
call fcn.0050d0a0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x550]
push 0
push edx
call fcn.004e8950
add esp, 0x2c
test eax, eax
je 0x50d5b8
mov byte [esi], 0
jmp 0x50d5c7
lea eax, [esp + 0x52c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call edi
cmp byte [esp + 0x220], 0
je 0x50d6e2
lea edx, [esp + 0x220]
push 0x20
push edx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d6e2
lea eax, [esp + 0x220]
push 0x2f
push eax
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d6e2
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x230]
push 0
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x50d6e2
lea edx, [esp + 0x220]
push 0x20
push edx
call fcn.005e0940
mov esi, eax
lea eax, [esp + 0x228]
push 0x2f
push eax
call fcn.005e0940
add esp, 0x10
cmp esi, eax
jbe 0x50d6e2
push 0x3ff
lea ecx, [esp + 0x531]
push 0
push ecx
mov byte [esp + 0x538], 0
call fcn.005dfd60
add esp, 0xc
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x530]
push eax
call edi
push 0
push 0x66da34
lea ecx, [esp + 0x534]
push 0x60cf1c
push ecx
call fcn.004e1b10
lea edx, [esp + 0x53c]
push edx
call fcn.0050d0a0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x550]
push 0
push eax
call fcn.004e8950
add esp, 0x2c
test eax, eax
je 0x50d6d0
mov byte [esi], 0
jmp 0x50d6e2
lea ecx, [esp + 0x52c]
push ecx
lea edx, [esp + 0x224]
push edx
call edi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50d743
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d707
push 0x2f
push ebp
mov ebx, 1
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d8c0
push 0
push 0x66da34
push 0x60cf1c
push ebp
call fcn.004e1b10
add esp, 0x10
jmp 0x50d8c0
push 0
push 0x2000000
push 3
push 0
push 3
lea edx, [esp + 0x2c]
push connect
push edx
call fcn.004e0400
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 0x1c
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x50d7d2
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
xor ebx, ebx
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d780
cmp byte [esp + 0x220], 0
je 0x50d8f1
push 0
push 0
push 0
push 0
lea edx, [esp + 0x230]
push 0
push edx
call fcn.004e8950
add esp, 0x18
test eax, eax
jne 0x50d814
lea eax, [esp + 0x220]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d7c3
jmp 0x50d711
push 0
push eax
call esi
lea edx, [esp + 0x10]
push edx
call fcn.004dca10
lea eax, [esp + 0x18]
push eax
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
je 0x50d7fb
test al, 0x10
je 0x50d7fb
xor ebx, ebx
jmp 0x50d78a
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d805
jmp 0x50d711
push 0
push 0x2000000
push 3
push 0
push 3
lea edx, [esp + 0x234]
push connect
push edx
call fcn.004e0400
add esp, 0x1c
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x50d848
xor ebx, ebx
mov eax, ebx
jmp 0x50d47e
push 0
push eax
call esi
lea eax, [esp + 0x10]
push eax
call fcn.004dca10
lea ecx, [esp + 0x220]
push ecx
call fcn.004e0fb0
add esp, 4
cmp eax, 0xffffffff
je 0x50d870
test al, 0x10
jne 0x50d83f
lea eax, [esp + 0x220]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d880
jmp 0x50d711
call fcn.004ec720
add esp, 4
mov ebx, 1
cmp eax, 1
je 0x50d8a5
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50d8b0
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x50d8f1
push 0x7e
push ebp
call fcn.005e0940
add esp, 8
test eax, eax
je 0x50d8ed
mov edx, dword [esp + 0x940]
push edx
push esi
push ebp
call fcn.004d8160
add esp, 0xc
test eax, eax
jne 0x50d8f1
push ebp
push esi
call edi
mov eax, ebx
jmp 0x50d47e
mov ecx, dword [esp + 0x928]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x920
ret