Function at 0x4fc952
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 8
call fcn.0051b67d
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0x108
call fcn.0051b67d
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x5c91e0
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 8
call fcn.0051b67d
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 4]
push eax
call fcn.004fd663
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004fd70d
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x40]
mov dword [ebx], 5
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x40]
mov dword [ebx], 0
mov dword [ebp - 0x40], esp
push dword [ebp - 8]
push 0
mov eax, dword [ebp - 4]
push eax
push 0x104
call fcn.0051b67d
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x40
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop ebx
add ebx, 4
push 0
push 0
call dword [sym.imp.WS2_32.DLL_select]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4fcabe
push 6
call fcn.0051b689
add esp, 4
push eax
mov ebx, dword [ebp - 0x44]
push ebx
mov edi, dword [ebp - 0x48]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 4
mov eax, 2
call fcn.0051ba20
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4fcaff
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4fcafd
imul eax, dword [edi]
jmp 0x4fcaf2
mov ecx, eax
cmp ecx, 0x40
jle 0x4fcb09
mov ecx, 0x40
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x100
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4fd619
mov dword [ebp - 0x10], 0x1388
mov dword [ebp - 0x40], esp
push 4
push dword [ebp - 0x10]
push 0x1006
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_setsockopt]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4fcb69
push 6
call fcn.0051b689
add esp, 4
mov eax, 0x5c9230
test eax, eax
je 0x4fcb85
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0051b67d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fcb96
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd7d7
mov dword [ebp - 0x40], eax
push 3
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.004fd829
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0051bb70
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fcbee
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.DLL_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4fcc05
mov eax, 0x5adea2
push eax
push 1
mov ebx, 0x194
call fcn.0051bc40
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fcc30
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_recv]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4fcc50
push 6
call fcn.0051b689
add esp, 4
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fcc78
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fcc97
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fccbd
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fccd0
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fccf6
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x18], al
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fcd24
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 5
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fcd43
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fcd69
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fcd88
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x138
call fcn.0051c9c0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fcdae
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4fcdc1
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4fcde7
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x1c], al
cmp byte [ebp - 0x18], 5
jne 0x4fce23
cmp byte [ebp - 0x1c], 0
je 0x4fce12
cmp byte [ebp - 0x1c], 2
je 0x4fce12
mov eax, 1
jmp 0x4fce17
mov eax, 0
test eax, eax
jne 0x4fce23
xor eax, eax
jmp 0x4fce28
mov eax, 1
test eax, eax
je 0x4fce3a
mov eax, 0xffffffff
jmp 0x4fd623
cmp byte [ebp - 0x1c], 2
jne 0x4fd279
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4fce59
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x130
call fcn.0051c5b0
add esp, 0x10
mov dword [ebp - 0x20], eax
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x4fce84
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x130
call fcn.0051c5b0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x44], eax
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4fcee8
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x50], eax
push OleUIBusyA
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x4fcf4c
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push 0x5c923d
mov ecx, 5
call fcn.004f9088
add esp, 0x14
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fcf93
push ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fcfa3
push ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4fcfb3
push ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x4fcfc3
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fcfd7
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd7d7
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x20]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x50]
fadd qword [ebp - 0x50]
fadd qword [0x5c9246]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004f9b00
push eax
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.004fd829
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0051bb70
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fd04b
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.DLL_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4fd062
mov eax, 0x5adea2
push eax
push 1
mov ebx, 0x194
call fcn.0051bc40
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fd08d
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_recv]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4fd0ad
push 6
call fcn.0051b689
add esp, 4
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fd0d5
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fd0f4
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fd11a
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fd12d
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fd153
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x28], al
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fd181
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 5
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fd1a0
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fd1c6
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fd1e5
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x138
call fcn.0051c9c0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fd20b
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4fd21e
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4fd244
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x2c], al
cmp byte [ebp - 0x28], 1
jne 0x4fd262
cmp byte [ebp - 0x2c], 0
jne 0x4fd262
xor eax, eax
jmp 0x4fd267
mov eax, 1
test eax, eax
je 0x4fd279
mov eax, 0xffffffff
jmp 0x4fd623
mov dword [ebp - 0x40], esp
mov ebx, dword [ebp + 0x14]
push dword [ebx]
call dword [sym.imp.WS2_32.DLL_inet_addr]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4fd29d
push 6
call fcn.0051b689
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], esp
push dword [ebp + 0x18]
call dword [sym.imp.WS2_32.DLL_ntohs]
nop
nop
nop
nop
cmp dword [ebp - 0x40], esp
je 0x4fd2c2
push 6
call fcn.0051b689
add esp, 4
mov word [ebp - 0x34], ax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0051bb70
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fd2fb
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x30]
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x80000201
push 0
push dword [ebp - 0x34]
push 1
mov ebx, 0x198
call fcn.0051c4a0
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push 0x5c924e
mov ecx, 3
call fcn.004f9088
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fd368
push ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fd378
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fd38c
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd7d7
mov dword [ebp - 0x40], eax
push 0xa
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.004fd829
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.0051bb70
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fd3e1
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.DLL_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4fd3f8
mov eax, 0x5adea2
push eax
push 1
mov ebx, 0x194
call fcn.0051bc40
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fd423
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.DLL_recv]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x4fd443
push 6
call fcn.0051b689
add esp, 4
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fd46b
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fd48a
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fd4b0
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fd4c3
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fd4e9
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x38], al
mov eax, 0x5c923b
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004fd86a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4fd517
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 5
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4fd536
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x134
call fcn.0051c8b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4fd55c
push ebx
call fcn.0051b677
add esp, 4
push 0x80000301
push 0
push 2
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4fd57b
mov eax, 0x5adea1
push eax
push 2
mov ebx, 0x138
call fcn.0051c9c0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4fd5a1
push ebx
call fcn.0051b677
add esp, 4
push OleUIBusyA
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x4fd5b4
mov eax, 0x5adea1
push eax
push 1
mov ebx, 0x9d4
call fcn.0051c910
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4fd5da
push ebx
call fcn.0051b677
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x3c], al
cmp byte [ebp - 0x38], 5
jne 0x4fd5f8
cmp byte [ebp - 0x3c], 0
jne 0x4fd5f8
xor eax, eax
jmp 0x4fd5fd
mov eax, 1
test eax, eax
je 0x4fd60f
mov eax, 0xffffffff
jmp 0x4fd623
mov eax, 0
jmp 0x4fd623
mov eax, 0xffffffff
jmp 0x4fd623
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0051b677
add esp, 4
pop ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0051b677
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4fd65c
push ebx
call fcn.0051b677
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14