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

Disassembly:
sub esp, 0x60
push ebx
or eax, 0xffffffff
mov dword [esp + 0x34], 0
push ebp
push esi
mov esi, dword [esp + 0x70]
or ebx, eax
push edi
or edi, eax
mov dword [esp + 0x24], eax
or ebp, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov al, byte [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x3c], ecx
test al, al
je 0x4f2a6b
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
lea ebx, [ebx]
cmp ecx, 6
jge 0x4f2a56
mov byte [esp + 0x74], 0
mov edi, edi
movzx eax, al
push eax
call fcn.004f1f50
add esp, 4
test eax, eax
jne 0x4f2698
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4f2680
movzx eax, byte [esi]
push eax
call fcn.004f1f70
add esp, 4
test eax, eax
je 0x4f27f5
xor eax, eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
lea eax, [esp + 0x50]
push eax
push str._31_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_
push esi
call edi
add esp, 0xc
test eax, eax
je 0x4f26fe
lea edi, [esp + 0x50]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4f26f3
sub edi, ecx
jmp 0x4f2700
xor edi, edi
cmp dword [esp + 0x24], 0xffffffff
jne 0x4f275a
mov ebx, 0x53518c
cmp edi, 3
ja 0x4f2716
mov ebx, 0x535140
xor eax, eax
mov dword [esp + 0x24], eax
lea esp, [esp]
push dword [ebx]
lea eax, [esp + 0x54]
push eax
call fcn.004e5ec0
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x4f274d
inc eax
add ebx, 4
mov dword [esp + 0x24], eax
cmp eax, 7
jl 0x4f2720
or eax, 0xffffffff
mov dword [esp + 0x24], eax
jmp 0x4f2756
cmp eax, 0xffffffff
jne 0x4f27ea
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4f27a6
xor eax, eax
mov ebx, 0x53515c
mov dword [esp + 0x14], eax
lea ebx, [ebx]
push dword [ebx]
lea eax, [esp + 0x54]
push eax
call fcn.004e5ec0
add esp, 8
test eax, eax
jne 0x4f279d
mov eax, dword [esp + 0x14]
add ebx, 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xc
jl 0x4f2770
or eax, 0xffffffff
mov dword [esp + 0x14], eax
jmp 0x4f27a6
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4f27ee
cmp ebp, 0xffffffff
jne 0x4f27cd
mov ebx, 0x5351a8
xor ebp, ebp
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.004e5ec0
add esp, 8
test eax, eax
jne 0x4f27d8
inc ebp
add ebx, 0xc
cmp ebp, 0x45
jb 0x4f27b2
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x60
ret
mov eax, dword [ebx + 8]
mov ebp, eax
shl ebp, 4
sub ebp, eax
shl ebp, 2
cmp ebp, 0xffffffff
je 0x4f27cd
mov ebx, dword [esp + 0x14]
add esi, edi
jmp 0x4f2a3d
movzx eax, byte [esi]
push eax
call fcn.004f1fb0
add esp, 4
test eax, eax
je 0x4f2a43
cmp dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], 0
jne 0x4f287c
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push str._02d:_02d:_02d_n
push esi
call edi
add esp, 0x18
cmp eax, 3
jne 0x4f2845
add esi, dword [esp + 0x28]
jmp 0x4f2a43
cmp dword [esp + 0x20], 0xffffffff
jne 0x4f287c
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
push str._02d:_02d_n
push esi
call edi
add esp, 0x14
cmp eax, 2
jne 0x4f287c
add esi, dword [esp + 0x28]
mov dword [esp + 0x20], 0
jmp 0x4f2a43
call dword [sym.imp.MSVCRT.dll__errno]
mov edi, dword [eax]
call dword [sym.imp.MSVCRT.dll__errno]
push 0xa
mov dword [eax], 0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], edi
je 0x4f28c3
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], edi
cmp dword [esp + 0x44], 0
jne 0x4f27cd
push dword [esp + 0x48]
call fcn.004e3870
mov edx, dword [esp + 0x30]
add esp, 4
mov edi, eax
cmp ebp, 0xffffffff
jne 0x4f2942
mov ecx, edx
sub ecx, esi
cmp ecx, 4
jne 0x4f2942
cmp edi, 0x578
jg 0x4f2942
cmp dword [esp + 0x4c], esi
jae 0x4f2942
mov al, byte [esi - 1]
mov byte [esp + 0x13], al
cmp al, 0x2b
je 0x4f290b
cmp al, 0x2d
jne 0x4f2942
mov eax, 0x51eb851f
mov byte [esp + 0x74], 1
imul edi
mov ecx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
shl eax, 3
sub ecx, eax
mov ebp, ecx
shl ebp, 4
sub ebp, ecx
shl ebp, 2
cmp byte [esp + 0x13], 0x2b
jne 0x4f2942
neg ebp
mov ecx, dword [esp + 0x18]
mov eax, edx
sub eax, esi
mov esi, dword [esp + 0x1c]
cmp eax, 8
jne 0x4f29ba
cmp ecx, 0xffffffff
jne 0x4f29ba
cmp ebx, ecx
jne 0x4f29ba
cmp esi, ecx
jne 0x4f29ba
mov eax, 0x68db8bad
mov ecx, edi
imul edi
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x2710
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
mov eax, 0x51eb851f
mov ecx, edi
sar edx, 5
mov ebx, edx
dec edx
shr ebx, 0x1f
add ebx, edx
imul edi
mov dword [esp + 0x14], ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x2c]
imul eax, eax, 0x64
sub ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x4f2a3b
cmp byte [esp + 0x74], 0
jne 0x4f2a3b
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4f29f6
cmp esi, 0xffffffff
jne 0x4f27cd
lea eax, [edi - 1]
cmp eax, 0x1e
ja 0x4f29e4
mov esi, edi
mov al, 1
mov dword [esp + 0x1c], esi
jmp 0x4f29e8
mov al, byte [esp + 0x74]
mov dword [esp + 0x30], 1
test al, al
jne 0x4f2a3b
jmp 0x4f29ff
cmp eax, 1
jne 0x4f27cd
cmp ecx, 0xffffffff
jne 0x4f27cd
mov dword [esp + 0x18], edi
cmp edi, 0x64
jge 0x4f2a2c
cmp edi, 0x46
jle 0x4f2a22
lea ecx, [edi + 0x76c]
mov dword [esp + 0x18], ecx
jmp 0x4f2a2c
lea eax, [edi + 0x7d0]
mov dword [esp + 0x18], eax
lea eax, [esi + 1]
neg eax
sbb eax, eax
and eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov esi, edx
mov edi, dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x3c]
mov al, byte [esi]
inc ecx
mov dword [esp + 0x3c], ecx
test al, al
jne 0x4f2670
cmp dword [esp + 0x20], 0xffffffff
mov edi, dword [esp + 0x18]
je 0x4f2a6b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
jmp 0x4f2a73
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x4f27cd
cmp ebx, 0xffffffff
je 0x4f27cd
cmp edi, 0xffffffff
je 0x4f27cd
cmp edi, 0x7f5
jle 0x4f2ab1
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax], closesocket
mov eax, 1
pop ebx
add esp, 0x60
ret
cmp edi, 0x76f
jge 0x4f2ad0
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword [eax], closesocket
mov eax, 2
pop ebx
add esp, 0x60
ret
cmp esi, 0x1f
jg 0x4f27cd
cmp ebx, 0xb
jg 0x4f27cd
cmp eax, 0x17
jg 0x4f27cd
cmp ecx, 0x3b
jg 0x4f27cd
mov edx, dword [esp + 0x20]
cmp edx, 0x3c
jg 0x4f27cd
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
push eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
call fcn.004f2530
mov ecx, dword [esp + 0x48]
add esp, 8
cmp ebp, 0xffffffff
jne 0x4f2b48
mov eax, dword [esp + 0x78]
xor ebp, ebp
pop edi
add ecx, ebp
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x60
ret
test ebp, ebp
jle 0x4f2b5b
mov eax, closesocket
sub eax, ebp
cmp ecx, eax
jg 0x4f2a9a
mov eax, dword [esp + 0x78]
add ecx, ebp
pop edi
pop esi
pop ebp
mov dword [eax], ecx
xor eax, eax
pop ebx
add esp, 0x60
ret