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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x370
mov esi, esp
mov dword [esi + 0x358], ebp
mov edi, ecx
lea eax, [esi + 0x360]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x438160
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 0
push 2
call dword [edi + 0xc]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x42f0fd
lea eax, [esi + 0x12c]
mov dword [eax], 0x22c
push eax
push ebx
call dword [edi + 4]
test eax, eax
je 0x42f0f4
mov dword [esi + 0x58], ebx
mov dword [esi + 0x24], edi
xor eax, eax
lea ecx, [esi + 0x80]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [esi + 0x368], eax
lea eax, [esi + 0x8c]
lea edx, [esi + 0x104]
push eax
push edx
push ecx
call fcn.0043203a
add esp, 0xc
lea edi, [esi + 0x150]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 7
mov word [esi + 0x40], 0
push edi
call fcn.005ff144
add esp, 4
mov ebx, eax
cmp eax, 7
jbe 0x42ea97
cmp ebx, 0x7fffffff
jae 0x42f126
mov ecx, ebx
or ecx, 7
cmp ecx, 0x7ffffffe
mov dword [esi + 4], ebx
jbe 0x42eab8
mov dword [esi + 8], connect
mov eax, 0xfffffffe
jmp 0x42ead4
mov dword [esi + 0x50], ebx
mov eax, ebx
add eax, ebx
push eax
push edi
lea edi, [esi + 0x40]
push edi
call fcn.005e2280
add esp, 0xc
mov word [esi + ebx*2 + 0x40], 0
mov edx, dword [esi + 0x40]
jmp 0x42eb1c
cmp ecx, 0xa
mov edx, 0xa
cmova edx, ecx
lea eax, [edx + edx]
add eax, 2
cmp edx, 0x7ff
jb 0x42eadf
mov dword [esi + 8], ecx
push eax
call fcn.00401ee4
add esp, 4
jmp 0x42eaeb
mov dword [esi + 8], edx
push eax
call fcn.005db3dd
add esp, 4
lea ecx, [esi + 0x150]
mov ebx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edx
mov edx, ebx
add edx, ebx
push edx
push ecx
push eax
mov edi, eax
call fcn.005e2280
mov edx, edi
add esp, 0xc
mov word [edi + ebx*2], 0
mov dword [esi + 0x40], edi
lea edi, [esi + 0x40]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
cmp eax, 7
cmova edi, edx
test ecx, ecx
je 0x42eb5a
lea ebx, [edi + ecx*2]
movzx eax, word [edi]
push eax
call fcn.005ff962
add esp, 4
mov word [edi], ax
add edi, 2
cmp edi, ebx
jne 0x42eb2f
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x40]
mov edi, dword [esi + 0x50]
mov dword [esi + 0x368], 1
jmp 0x42eb5c
xor edi, edi
cmp eax, 7
lea eax, [esi + 0x40]
cmovbe edx, eax
mov dword [esi + 0xc], edx
xor eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
mov dword [esi + 0x368], 1
lea ecx, [esi + 0x28]
mov dword [esi + 4], edi
push edi
call fcn.0042704c
mov eax, dword [esi + 4]
test eax, eax
mov edx, dword [esi + 0xc]
je 0x42ed04
lea edi, [edx + eax*2]
mov dword [esi + 0x18], edi
mov al, byte [edx]
mov byte [esi + 4], al
mov eax, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
cmp eax, ebx
jae 0x42ebd5
mov ecx, eax
inc eax
mov dword [esi + 0x38], eax
lea eax, [esi + 0x28]
cmp ebx, 0xf
jbe 0x42ebc5
mov eax, dword [esi + 0x28]
mov bl, byte [esi + 4]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x42ecc8
cmp eax, 0x7fffffff
je 0x42f112
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
lea ecx, [eax + 1]
mov dword [esi + 0x1c], ecx
or ecx, 0xf
mov dword [esi + 0x14], connect
mov eax, connect
mov dword [esi + 0x20], ebx
js 0x42ec28
mov edx, ebx
shr edx, 1
mov edi, edx
xor edi, 0x7fffffff
cmp edi, ebx
jb 0x42ec28
add edx, ebx
cmp ecx, edx
cmovae edx, ecx
lea eax, [edx + 1]
cmp eax, 0x1000
jb 0x42ecd5
mov dword [esi + 0x14], edx
mov dword [esi + 0x368], 2
push eax
call fcn.00401ee4
add esp, 4
mov edi, eax
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
cmp ebx, 0x10
jb 0x42eca4
mov ebx, dword [esi + 0x28]
push eax
push ebx
push edi
call fcn.005e2280
add esp, 0xc
mov al, byte [esi + 4]
mov ecx, dword [esi + 8]
mov byte [edi + ecx], al
mov byte [edi + ecx + 1], 0
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x42ec98
mov edx, eax
mov eax, dword [ebx - 4]
add ebx, 0xfffffffc
sub ebx, eax
cmp ebx, 0x20
jae 0x42f121
mov ecx, edx
add ecx, 0x24
mov ebx, eax
push ecx
push ebx
call fcn.005db412
add esp, 8
jmp 0x42ecbf
push eax
mov ebx, eax
lea eax, [esi + 0x28]
push eax
push edi
call fcn.005e2280
add esp, 0xc
mov al, byte [esi + 4]
mov byte [edi + ebx], al
mov byte [edi + ebx + 1], 0
mov dword [esi + 0x28], edi
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x18]
add edx, 2
cmp edx, edi
jne 0x42eba5
jmp 0x42ed04
test eax, eax
je 0x42ecf4
mov dword [esi + 0x14], edx
mov dword [esi + 0x368], 2
push eax
call fcn.005db3dd
add esp, 4
jmp 0x42ec3b
xor edi, edi
xor edx, edx
dec edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
jmp 0x42ec49
mov dword [esi + 0x368], 3
lea ecx, [esi + 0xc8]
call fcn.0042493c
mov eax, dword [esi + 0x8c]
shl eax, 2
mov dword [esi + 0x368], 4
lea ecx, [esi + 0xc8]
mov dword [esi + 4], eax
push eax
lea eax, [esi + 0x104]
push eax
call fcn.00424fb2
lea ecx, [esi + 0xc8]
lea eax, [esi + 0x28]
push eax
call fcn.00424c24
lea ecx, [esi + 0xc8]
call fcn.004263fe
lea ecx, [esi + 0x90]
call fcn.0042493c
mov eax, dword [esi + 0x50]
mov dword [esi + 0x20], eax
cmp eax, 0x10
jb 0x42ee9e
mov dword [esi + 0x368], 5
lea ecx, [esi + 0x90]
push dword [esi + 4]
lea eax, [esi + 0x104]
push eax
call fcn.00424fb2
xor eax, eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
mov ebx, dword [esi + 0x38]
cmp ebx, 0x10
mov eax, 0x10
cmovae ebx, eax
cmp dword [esi + 0x3c], 0xf
lea eax, [esi + 0x28]
lea edi, [esi + 0x5c]
jbe 0x42edc5
mov eax, dword [esi + 0x28]
cmp ebx, 0xf
jbe 0x42edf7
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
or ebx, 0xf
cmp ebx, 0x16
mov eax, 0x16
cmovbe ebx, eax
lea eax, [ebx + 1]
mov dword [esi + 0xc], ebx
cmp ebx, 0xfff
jb 0x42ee0c
push eax
call fcn.00401ee4
add esp, 4
jmp 0x42ee15
mov dword [esi + 0x6c], ebx
push ebx
push eax
push edi
call fcn.005e2280
add esp, 0xc
mov byte [esi + ebx + 0x5c], 0
jmp 0x42ee3b
push eax
call fcn.005db3dd
add esp, 4
mov edi, eax
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ecx
push ebx
push eax
push edi
call fcn.005e2280
add esp, 0xc
mov byte [edi + ebx], 0
mov dword [esi + 0x5c], edi
lea edi, [esi + 0x5c]
mov dword [esi + 0x368], 6
lea ecx, [esi + 0x90]
push edi
call fcn.00424c24
mov eax, dword [esi + 0x70]
cmp eax, 0x10
jb 0x42ee89
mov ecx, dword [esi + 0x5c]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42ee7f
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f121
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov dword [esi + 0x368], 5
lea ecx, [esi + 0x90]
call fcn.004263fe
mov eax, dword [esi + 0x80]
mov dword [esi + 0x78], eax
test eax, eax
mov ebx, dword [esi + 0x24]
je 0x42ef78
mov eax, dword [esi + 0x88]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0xc8]
mov dword [esi + 0xc], eax
xor ecx, ecx
mov eax, dword [esi + 0x90]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x7c], ecx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42ef6b
mov dword [esi + 0x18], eax
mov eax, dword [eax + 0xc]
mov dword [esi + 8], eax
xor ecx, ecx
mov eax, dword [esi + 8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [ebx]
cmp eax, dword [esi + 0xc]
jne 0x42ef2b
mov dword [esi + 0x14], eax
xor eax, eax
mov edi, eax
inc eax
cmp eax, 5
je 0x42ef18
mov edx, dword [ebx + edi*4 + 4]
cmp edx, dword [esi + edi*4 + 0xcc]
je 0x42ef03
cmp edi, 4
jb 0x42ef28
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
or eax, dword [edx]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x20], 0x10
jb 0x42ef62
cmp eax, dword [esi + 0x1c]
jne 0x42ef62
xor edx, edx
mov eax, edx
inc edx
cmp edx, 5
je 0x42ef4d
mov edi, dword [ebx + eax*4 + 4]
cmp edi, dword [esi + eax*4 + 0x94]
je 0x42ef38
cmp eax, 4
mov ebx, dword [esi + 0x24]
jb 0x42ef65
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
or eax, dword [edx]
mov dword [esi + 0x10], eax
jmp 0x42ef65
mov ebx, dword [esi + 0x24]
inc ecx
cmp ecx, dword [esi + 4]
jne 0x42eef1
mov ecx, dword [esi + 0x7c]
inc ecx
cmp ecx, dword [esi + 0x78]
jne 0x42eecf
mov eax, dword [esi + 0xb8]
cmp eax, 0x10
jb 0x42efb6
mov ecx, dword [esi + 0xa4]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42efac
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f121
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov eax, dword [esi + 0xf0]
cmp eax, 0x10
jb 0x42eff4
mov ecx, dword [esi + 0xdc]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42efea
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f121
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov eax, dword [esi + 0x3c]
cmp eax, 0x10
jb 0x42f02c
mov ecx, dword [esi + 0x28]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f022
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f121
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov ecx, dword [esi + 0x54]
cmp ecx, 8
jb 0x42f073
mov eax, dword [esi + 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42f05f
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42f121
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005db412
add esp, 8
mov dword [esi + 0x368], 0
mov eax, dword [ebx + 8]
mov dword [esi + 0x368], 0
lea ecx, [esi + 0x12c]
push ecx
push dword [esi + 0x58]
call eax
test eax, eax
lea edi, [esi + 0x150]
jne 0x42ea48
lea eax, [esi + 0x80]
push eax
call fcn.0042e874
add esp, 4
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0x10], 0x13b002
jne 0x42f0e1
call fcn.0042f4b8
mov dword [esi + 4], eax
call fcn.0042f444
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x24]
call fcn.0043583a
mov ecx, dword [esi + 4]
or ecx, dword [esi + 0x10]
or ecx, dword [esi + 8]
or ecx, eax
mov dword [esi + 0x10], ecx
push dword [esi + 0x88]
call fcn.005fd8d5
add esp, 4
mov eax, dword [esi + 0x10]
jmp 0x42f0fd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esi + 0x360]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x368], 2
call fcn.00401eda
call fcn.005f5844
call fcn.00401eda
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov eax, dword [esi + 0x3c]
cmp eax, 0x10
jb 0x42f170
mov ecx, dword [esi + 0x28]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f166
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f187
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
add esp, 0xc
pop ebp
ret
call fcn.005f5844
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov eax, dword [esi + 0x70]
cmp eax, 0x10
jb 0x42f1d0
mov ecx, dword [esi + 0x5c]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f1c6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f1e7
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
add esp, 0xc
pop ebp
ret
call fcn.005f5844
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov eax, dword [esi + 0xb8]
cmp eax, 0x10
jb 0x42f236
mov ecx, dword [esi + 0xa4]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f22c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f256
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0xf
mov byte [esi + 0xa4], 0
add esp, 0xc
pop ebp
ret
call fcn.005f5844
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov eax, dword [esi + 0xf0]
cmp eax, 0x10
jb 0x42f2a6
mov ecx, dword [esi + 0xdc]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f29c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f2ab
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.005f5844
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov eax, dword [esi + 0x3c]
cmp eax, 0x10
jb 0x42f2f4
mov ecx, dword [esi + 0x28]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x42f2ea
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42f30b
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.005db412
add esp, 8
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
add esp, 0xc
pop ebp
ret
call fcn.005f5844
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
mov ecx, dword [esi + 0x54]
cmp ecx, 8
jb 0x42f359
mov eax, dword [esi + 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42f34f
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42f372
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005db412
add esp, 8
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 7
mov word [esi + 0x40], 0
add esp, 0xc
pop ebp
ret
call fcn.005f5844
nop
push ebp
sub esp, 0xc
lea esi, [ebp - 0x36c]
mov ebp, dword [esi + 0x358]
push dword [esi + 0x88]
call fcn.005fd8d5
add esp, 0x10
pop ebp
ret