Function at 0x1009b782
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.100ba4ad
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.100ba4ad
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x10134a18
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.100ba4ad
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.1009c493
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.1009c53d
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.100ba4ad
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 0x1009b8ee
push 6
call fcn.100ba4b9
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.100ba850
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 0x1009b92f
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x1009b92d
imul eax, dword [edi]
jmp 0x1009b922
mov ecx, eax
cmp ecx, 0x40
jle 0x1009b939
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.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x1009c449
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 0x1009b999
push 6
call fcn.100ba4b9
add esp, 4
mov eax, 0x10134a68
test eax, eax
je 0x1009b9b5
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100ba4ad
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 0x1009b9c6
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c607
mov dword [ebp - 0x40], eax
push 3
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.1009c659
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.100ba9a0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009ba1e
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push htons
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1009ba35
mov eax, 0x101196da
push eax
push 1
mov ebx, 0x194
call fcn.100baa70
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 0x1009ba60
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 0x1009ba80
push 6
call fcn.100ba4b9
add esp, 4
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009baa8
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009bac7
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009baed
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009bb00
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009bb26
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x18], al
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009bb54
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 5
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009bb73
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009bb99
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009bbb8
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x138
call fcn.100bb7f0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009bbde
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x1009bbf1
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1009bc17
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x1c], al
cmp byte [ebp - 0x18], 5
jne 0x1009bc53
cmp byte [ebp - 0x1c], 0
je 0x1009bc42
cmp byte [ebp - 0x1c], 2
je 0x1009bc42
mov eax, 1
jmp 0x1009bc47
mov eax, 0
test eax, eax
jne 0x1009bc53
xor eax, eax
jmp 0x1009bc58
mov eax, 1
test eax, eax
je 0x1009bc6a
mov eax, 0xffffffff
jmp 0x1009c453
cmp byte [ebp - 0x1c], 2
jne 0x1009c0a9
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x1009bc89
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x130
call fcn.100bb3e0
add esp, 0x10
mov dword [ebp - 0x20], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1009bcb4
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x130
call fcn.100bb3e0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push dword [ebp - 0x20]
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x198
call fcn.100bb2d0
add esp, 0x10
mov dword [ebp - 0x44], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x1009bd18
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x198
call fcn.100bb2d0
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
push 0x80000101
push 0
push eax
push 1
mov ebx, 0x198
call fcn.100bb2d0
add esp, 0x10
mov dword [ebp - 0x50], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1009bd7c
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x198
call fcn.100bb2d0
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 0x10134a75
mov ecx, 5
call fcn.10097eb8
add esp, 0x14
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009bdc3
push ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009bdd3
push ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x1009bde3
push ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x1009bdf3
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009be07
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c607
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 [0x10134a7e]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.10098930
push eax
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.1009c659
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.100ba9a0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009be7b
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push htons
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1009be92
mov eax, 0x101196da
push eax
push 1
mov ebx, 0x194
call fcn.100baa70
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 0x1009bebd
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 0x1009bedd
push 6
call fcn.100ba4b9
add esp, 4
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009bf05
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009bf24
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009bf4a
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009bf5d
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009bf83
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x28], al
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009bfb1
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 5
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009bfd0
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009bff6
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009c015
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x138
call fcn.100bb7f0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009c03b
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x1009c04e
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1009c074
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x2c], al
cmp byte [ebp - 0x28], 1
jne 0x1009c092
cmp byte [ebp - 0x2c], 0
jne 0x1009c092
xor eax, eax
jmp 0x1009c097
mov eax, 1
test eax, eax
je 0x1009c0a9
mov eax, 0xffffffff
jmp 0x1009c453
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 0x1009c0cd
push 6
call fcn.100ba4b9
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 0x1009c0f2
push 6
call fcn.100ba4b9
add esp, 4
mov word [ebp - 0x34], ax
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.100ba9a0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009c12b
push ebx
call fcn.100ba4a7
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.100bb2d0
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x80000201
push 0
push dword [ebp - 0x34]
push 1
mov ebx, 0x198
call fcn.100bb2d0
add esp, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push 0x10134a86
mov ecx, 3
call fcn.10097eb8
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009c198
push ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009c1a8
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009c1bc
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c607
mov dword [ebp - 0x40], eax
push 0xa
push dword [ebp - 0x40]
push dword [ebp + 8]
call fcn.1009c659
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.100ba9a0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009c211
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push htons
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1009c228
mov eax, 0x101196da
push eax
push 1
mov ebx, 0x194
call fcn.100baa70
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 0x1009c253
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 0x1009c273
push 6
call fcn.100ba4b9
add esp, 4
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009c29b
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009c2ba
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009c2e0
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009c2f3
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009c319
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x38], al
mov eax, 0x10134a73
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1009c69a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x1009c347
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 5
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x1009c366
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x134
call fcn.100bb6e0
add esp, 0x1c
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x1009c38c
push ebx
call fcn.100ba4a7
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x1009c3ab
mov eax, 0x101196d9
push eax
push 2
mov ebx, 0x138
call fcn.100bb7f0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x1009c3d1
push ebx
call fcn.100ba4a7
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x1009c3e4
mov eax, 0x101196d9
push eax
push 1
mov ebx, 0x9d4
call fcn.100bb740
add esp, 0x10
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1009c40a
push ebx
call fcn.100ba4a7
add esp, 4
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x3c], al
cmp byte [ebp - 0x38], 5
jne 0x1009c428
cmp byte [ebp - 0x3c], 0
jne 0x1009c428
xor eax, eax
jmp 0x1009c42d
mov eax, 1
test eax, eax
je 0x1009c43f
mov eax, 0xffffffff
jmp 0x1009c453
mov eax, 0
jmp 0x1009c453
mov eax, 0xffffffff
jmp 0x1009c453
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100ba4a7
add esp, 4
pop ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.100ba4a7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1009c48c
push ebx
call fcn.100ba4a7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14