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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x154], eax
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], eax
movlpd qword [esp + 0x88], xmm0
mov dword [esp + 0x54], eax
push esi
mov esi, 0x14
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], ecx
test edx, edx
je 0x4bd437
mov eax, dword [ebp + 8]
add eax, 0xffffffec
cmp eax, 0x26fc
ja 0x4bd437
cmp word [ecx], 2
jne 0x4bd437
movzx eax, word [edx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [esp + 0x30], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
add ax, si
movzx eax, ax
mov dword [esp + 0x2c], eax
movzx eax, ax
mov dword [esp + 0x28], eax
cmp eax, dword [ebp + 8]
jne 0x4bd437
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x44], eax
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0x2112a442
jne 0x4bd437
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xac]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x60], xmm0
lea ecx, [eax + 8]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4bc5fc
xor esi, esi
mov edi, ecx
movzx ecx, byte [esi + edi]
lea edx, [edx + 2]
mov eax, ecx
inc esi
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x5f00e0]
mov byte [edx - 2], al
movzx eax, byte [ecx + 0x5f00e0]
mov byte [edx - 1], al
cmp esi, 0xc
jl 0x4bc5c3
mov edi, dword [esp + 0x50]
mov esi, 0x14
mov eax, dword [esp + 0x18]
mov byte [edx], 0
mov ecx, dword [esp + 0x28]
cmp ecx, 0x18
jle 0x4bca75
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x4c], ecx
nop
add eax, esi
mov dword [esp + 0x3c], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
movzx eax, word [eax + esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x1c]
movzx esi, ax
mov eax, esi
mov dword [esp + 0xc], eax
add eax, 4
add eax, ecx
cmp eax, dword [esp + 0x28]
jg 0x4bd437
cmp dword [esp + 0x5c], 0
mov edx, dword [esp + 0x40]
je 0x4bc67b
mov eax, 0x8028
cmp dx, ax
jne 0x4bca4b
movzx eax, dx
cmp eax, 0x20
ja 0x4bc936
je case.0x4bc697.1
dec eax
cmp eax, 8
ja case.0x4bc940.32811
jmp dword [eax*4 + 0x4bd450]
cmp dword [esp + 0x10], 0
lea edx, [esp + 0xac]
je 0x4bc6e2
mov edi, dword [esp + 0x10]
xor esi, esi
movzx ecx, byte [esi + edi]
lea edx, [edx + 2]
mov eax, ecx
inc esi
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + 0x5f00e0]
mov byte [edx - 2], al
movzx eax, byte [ecx + 0x5f00e0]
mov byte [edx - 1], al
cmp esi, 0xc
jl 0x4bc6b2
mov edi, dword [esp + 0x50]
mov byte [edx], 0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
mov byte [edx + eax + 8], 0
jmp 0x4bc96e
cmp esi, 9
jb case.0x4bc940.32811
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp byte [eax + ecx + 0xc], 0x3a
jne 0x4bc96e
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x4bc96e
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x5c], 1
cmp esi, 0x14
jne case.0x4bc940.32811
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bc775
lea ecx, [esp + 0x138]
push ecx
lea edx, [edi + 0x108]
mov ecx, eax
call fcn.004bb9b0
lea esi, [esp + 0x13c]
mov dword [esp + 0x58], 0x20
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 1
jmp 0x4bc7dc
mov eax, dword [esp + 0x10]
mov dl, byte [eax]
cmp dl, 0xa
jae 0x4bc79e
movzx eax, dl
mov eax, dword [edi + eax*4 + 0x148]
test eax, eax
je 0x4bc79e
mov esi, dword [eax + 4]
mov dword [esp + 0x40], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x54], esi
jmp 0x4bc7e0
mov al, dl
xor al, 0x80
cmp al, 0xa
jae 0x4bd437
movzx eax, dl
xor eax, 0x80
mov eax, dword [edi + eax*4 + 0x170]
test eax, eax
je 0x4bd437
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ecx*4 + 0x148]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, 0x18
add eax, ecx
mov dword [esp + 0x90], eax
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x8028
cmp ax, cx
jne 0x4bc819
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x30]
mov word [ecx], ax
call fcn.004e60d0
push 0
mov esi, eax
call fcn.004d13c0
push eax
push dword [esp + 0x5c]
push dword [esp + 0x4c]
push esi
call fcn.004e62b0
add esp, 0x14
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.004e64c0
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.004e6200
add esp, 0xc
push esi
call fcn.004e6060
mov eax, dword [esp + 0x94]
add esp, 4
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x8028
cmp ax, cx
jne 0x4bc899
mov eax, dword [esp + 0x2c]
add eax, 0xffffffec
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x30]
mov word [ecx], ax
cmp dword [esp + 0x3c], 0x14
jne 0x4bd437
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xac]
add edx, dword [esp + 0x1c]
mov esi, 0x10
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4bd437
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bc8c0
jmp case.0x4bc940.32811
mov esi, dword [esp + 0x18]
cmp byte [esi + ecx + 5], 1
jne case.0x4bc940.32811
mov eax, 2
mov word [esp + 0x80], ax
mov ax, word [esi + ecx + 6]
mov esi, dword [esp + 0x10]
mov word [esp + 0x82], ax
mov ecx, dword [esi + ecx]
mov dword [esp + 0x84], ecx
cmp dx, 0x20
jne case.0x4bc940.32811
mov edx, 0x1221
xor ax, dx
xor ecx, 0x42a41221
mov word [esp + 0x82], ax
mov dword [esp + 0x84], ecx
jmp case.0x4bc940.32811
sub eax, 0x8028
cmp eax, 4
ja case.0x4bc940.32811
jmp dword [eax*4 + 0x4bd474]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], 1
push dword [esi + ecx + 4]
push dword [esi + ecx]
call fcn.004ae160
add esp, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xc]
mov eax, edx
mov ecx, 4
and eax, 3
sub ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x4bc987
dec ecx
or ecx, 0xfffffffc
inc ecx
mov eax, dword [esp + 0x1c]
add ecx, edx
add eax, 4
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
add eax, 4
mov esi, dword [esp + 0x1c]
cmp eax, ecx
jge 0x4bca8b
mov eax, dword [esp + 0x18]
jmp 0x4bc620
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], 1
push dword [eax + ecx + 4]
push dword [eax + ecx]
jmp 0x4bc95a
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp byte [esi + ecx + 5], 1
jne 0x4bc96e
mov eax, 2
mov word [esp + 0x60], ax
mov ax, word [esi + ecx + 6]
mov word [esp + 0x62], ax
mov eax, dword [esi + ecx + 8]
mov dword [esp + 0x64], eax
jmp 0x4bc96e
cmp esi, 4
jne 0x4bca53
lea eax, [ecx + 8]
cmp eax, dword [esp + 0x28]
jne 0x4bd437
mov eax, dword [esp + 0x44]
push dword [eax + ecx]
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esp + 0x1c]
mov esi, eax
mov ecx, dword [esp + 0x18]
call fcn.004bb230
xor eax, 0x5354554e
cmp eax, esi
je case.0x4bc940.32811
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov esi, ecx
jmp 0x4bca8b
test si, si
jne 0x4bd437
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
cmp esi, ecx
jne 0x4bd437
mov edx, dword [esp + 0x38]
mov eax, 0x100
and edx, 0x110
mov dword [esp + 0x38], edx
jne 0x4bcf7e
cmp dword [esp + 0x24], 1
jne 0x4bd054
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bcf65
mov al, byte [eax]
cmp al, 0x61
movsx eax, al
jl 0x4bcad1
sub eax, 0x61
jmp 0x4bcad4
sub eax, 0x41
mov dword [esp + 0x30], eax
cmp eax, 0xa
jge 0x4bcf65
lea edx, [eax + 0x52]
mov esi, dword [edi + edx*4]
lea edx, [edi + edx*4]
mov dword [esp + 0x28], edx
test esi, esi
je 0x4bcf65
mov edx, dword [esp + 0x14]
cmp word [edx], 2
jne 0x4bcbda
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x4bcb99
cmp dword [esi + 0x5c], eax
jne 0x4bcb99
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
nop dword [eax]
mov ecx, eax
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4bcb4d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bcb37
jmp 0x4bcbda
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp word [eax], 0
je 0x4bcb72
inc ecx
add eax, 0x1c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp ecx, 8
jge 0x4bcbda
mov edx, dword [esp + 0x14]
jmp 0x4bcb30
lea eax, [ecx*8]
mov esi, 0x1c
sub eax, ecx
mov edx, esi
mov ecx, dword [esp + 0x2c]
push 0x10
push dword [esp + 0x18]
lea ecx, [ecx + eax*4]
call fcn.00401000
add esp, 8
jmp 0x4bcbdf
xor edx, edx
test eax, eax
jle 0x4bcbda
mov ecx, dword [esi + 0x5c]
mov edi, dword [esp + 0x14]
movzx eax, word [edi + 2]
cmp word [ecx + 4], ax
mov edi, dword [esp + 0x50]
mov eax, dword [esi + 0x64]
jne 0x4bcbc9
mov edi, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, dword [edi + 4]
mov edi, dword [esp + 0x50]
je 0x4bcbd3
mov eax, dword [esi + 0x64]
inc edx
add ecx, 6
cmp edx, eax
jl 0x4bcba2
jmp 0x4bcbda
mov eax, dword [esi + 0x60]
mov byte [edx + eax], 1
mov esi, 0x1c
mov eax, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x24], edx
mov eax, dword [eax]
lea ecx, [edx + 0x10]
add eax, 0x90
mov dword [esp + 0x20], eax
nop word [eax + eax]
movzx eax, word [eax]
test ax, ax
je 0x4bcca3
mov edx, dword [esp + 0x14]
movzx edx, word [edx]
cmp ax, dx
jne 0x4bcc80
cmp edx, 0x17
mov edx, dword [esp + 0x20]
cmove ecx, esi
mov esi, dword [esp + 0x14]
sub ecx, 4
jb 0x4bcc41
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4bcc4a
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4bcc30
cmp ecx, 0xfffffffc
je 0x4bccd2
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4bcc7b
cmp ecx, 0xfffffffd
je 0x4bccd2
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4bcc7b
cmp ecx, 0xfffffffe
je 0x4bccd2
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4bcc7b
cmp ecx, 0xffffffff
je 0x4bccd2
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4bccd2
mov ecx, 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc edx
add eax, 0x1c
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
cmp edx, 5
jge 0x4bccd2
mov esi, 0x1c
jmp 0x4bcc00
mov eax, dword [esp + 0x14]
cmp word [eax], 0x17
cmove ecx, esi
push ecx
push eax
lea eax, [edx*8]
sub eax, edx
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
mov edx, esi
lea ecx, [ecx + eax*4]
add ecx, 0x90
call fcn.00401000
add esp, 8
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4bcf65
mov ecx, dword [eax + 0x6c]
cmp ecx, 1
jne 0x4bccf1
cmp dword [esp + 0x34], 0
jne 0x4bcd05
mov edx, dword [esp + 0x58]
test ecx, ecx
jne 0x4bcdb1
test edx, edx
je 0x4bcdb1
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x101
call esi
push 0x2112a442
mov word [esp + 0xcc], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0xc
push dword [esp + 0x14]
mov edx, 0x66
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0xd8]
call fcn.00401000
add esp, 8
push 0x20
call esi
push 8
mov word [esp + 0xe0], ax
call esi
push 1
mov word [esp + 0xe2], ax
call esi
mov word [esp + 0xe0], ax
mov ecx, 0x1221
mov eax, dword [esp + 0x14]
mov edx, 0x20
push 0x20
xor cx, word [eax + 2]
mov eax, dword [eax + 4]
xor eax, 0x42a41221
mov word [esp + 0xe6], cx
mov dword [esp + 0xe8], eax
lea ecx, [esp + 0xcc]
lea eax, [esp + 0x13c]
push eax
call fcn.004bbbb0
lea esi, [eax + 0x20]
jmp 0x4bceaf
cmp ecx, 1
jne 0x4bcdd6
test edx, edx
je 0x4bcdd6
push dword [eax + 0x4f]
push dword [eax + 0x4b]
call fcn.004ae160
add esp, 8
cmp edx, dword [esp + 0x48]
jb 0x4bce11
ja 0x4bcdd6
cmp eax, dword [esp + 0x4c]
jb 0x4bce11
mov eax, dword [esi]
cmp dword [eax + 0x6c], 0
jne 0x4bcf4d
cmp dword [esp + 0x34], 0
je 0x4bcf4d
push dword [eax + 0x4f]
push dword [eax + 0x4b]
call fcn.004ae160
add esp, 8
cmp edx, dword [esp + 0x48]
jb 0x4bcf4d
ja 0x4bce11
cmp eax, dword [esp + 0x4c]
jb 0x4bcf4d
movaps xmm0, xmmword [0x5f1080]
lea edx, [esp + 0xac]
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movups xmmword [esp + 0x64], xmm0
mov byte [esp + 0x74], 0x74
call fcn.004c4e20
add esp, 4
lea ecx, [esp + 0xc8]
mov edx, 0x111
mov esi, eax
push dword [esp + 0x10]
call fcn.004c4bd0
add esp, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xac]
lea ecx, [esp + 0xc8]
push esi
mov esi, dword [esp + 0x30]
mov edx, esi
push eax
push 0x20
call fcn.004c4c40
add esp, 0xc
lea ecx, [esp + 0xc8]
add esi, eax
lea eax, [esp + 0x60]
mov edx, esi
push 0x11
push eax
push 9
call fcn.004c4c40
add esp, 0xc
lea ecx, [esp + 0xc8]
add esi, eax
lea eax, [esp + 0x138]
mov edx, esi
push 0x20
push eax
call fcn.004bbbb0
add esi, eax
add esp, 8
lea ecx, [esp + 0xc8]
mov edx, esi
call fcn.004bbc30
push 2
push dword [esp + 0x18]
add esi, eax
lea edx, [esp + 0xd0]
push esi
push ecx
mov ecx, edi
call fcn.004bc1f0
mov esi, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [esi]
cmp dword [eax + 0x5c], 0
je 0x4bcf65
cmp dword [eax + 0x64], 0
jle 0x4bcf65
test eax, eax
je 0x4bcf65
cmp dword [eax + 0x68], 0xa
jge 0x4bcf65
cmp dword [eax + 0x74], 0
jge 0x4bcf65
lea eax, [esp + 0x90]
push 0xc
push eax
call fcn.004e2870
mov eax, dword [esi]
mov edx, dword [esp + 0x38]
push dword [esp + 0x1c]
mov byte [esp + 0x9c], dl
inc dword [eax + 0x68]
mov ecx, dword [esi]
push 0
call fcn.004bd850
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x6c], eax
sete al
mov dword [ecx + 0x6c], eax
mov ecx, dword [esi]
call fcn.004bdfd0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
cmp dx, ax
mov edx, dword [esp + 0x10]
jne 0x4bd058
mov al, byte [edx]
cmp al, 0xa
ja 0x4bd058
movsx eax, al
mov ecx, dword [edi + eax*4 + 0x148]
mov dword [esp + 0x3c], ecx
cmp dword [ecx + 0x6c], 0
jne 0x4bd058
cmp dword [ecx + 0x74], 0
jge 0x4bd058
xor edx, edx
mov dword [esp + 0x34], edx
cmp dword [ecx + 0x64], edx
jle 0x4bd054
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 0x5c]
mov dword [esp + 0x24], ecx
movzx esi, word [eax]
mov dword [esp + 0x2c], esi
nop dword [eax + eax]
xorps xmm0, xmm0
mov eax, 2
movaps xmmword [esp + 0x90], xmm0
mov word [esp + 0x90], ax
mov eax, dword [ecx]
mov dword [esp + 0x94], eax
mov ax, word [ecx + 4]
mov word [esp + 0x92], ax
mov eax, 2
cmp ax, si
jne 0x4bd111
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x90]
lea esi, [eax + 0xa]
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4bd105
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bd030
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x60]
mov byte [ecx + eax], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov ecx, 0x100
mov dword [esp + 0x2c], 1
cmp ax, cx
jne case.default.0x4bd0fe
mov cl, byte [edx]
mov al, cl
xor al, 0x80
cmp al, 0xa
jae 0x4bd0b9
movzx eax, cl
mov ecx, dword [edi + 0x20]
xor eax, 0x80
mov edx, dword [edi + eax*4 + 0x170]
lea esi, [edi + eax*4]
inc edx
call fcn.004b2870
mov edx, dword [esi + 0x170]
mov ecx, dword [edi + 0x20]
inc edx
push 0
push 0x4bc0a0
push 0x3a98
call fcn.004b2450
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx]
cmp eax, dword [edi + 0x128]
jne case.default.0x4bd0fe
mov eax, dword [edx + 4]
cmp eax, dword [edi + 0x12c]
jne case.default.0x4bd0fe
mov eax, dword [edx + 8]
cmp eax, dword [edi + 0x130]
jne case.default.0x4bd0fe
mov ecx, dword [edi + 0x20]
mov edx, edi
call fcn.004b2870
mov eax, dword [edi + 0x104]
cmp eax, 3
ja case.default.0x4bd0fe
jmp dword [eax*4 + 0x4bd488]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
inc edx
add ecx, 6
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], ecx
cmp edx, dword [eax + 0x64]
jl 0x4bcfe0
jmp 0x4bd054
cmp word [esp + 0x80], 2
jne 0x4bd2cc
cmp word [esp + 0x60], 2
mov esi, 0x1c
jne 0x4bd184
lea eax, [esp + 0x60]
mov edx, esi
push 0x10
push eax
lea ecx, [edi + 0xe8]
call fcn.00401000
lea eax, [esp + 0x68]
mov edx, esi
push 0x10
push eax
lea ecx, [edi + 0xcc]
call fcn.00401000
mov ax, word [edi + 0xb2]
add esp, 0x10
mov word [edi + 0xce], ax
lea ecx, [esp + 0x80]
mov edx, esi
push 0x10
push ecx
lea ecx, [edi + 0x5c]
call fcn.00401000
mov eax, dword [edi + 0x34]
add esp, 8
xor esi, esi
test eax, eax
jne 0x4bd1e4
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], esi
call fcn.004ae180
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4bd215
test eax, eax
jle 0x4bd1d6
mov edx, dword [edi + 0x60]
add ecx, 4
cmp edx, dword [ecx]
lea ecx, [ecx + 0x10]
cmove esi, dword [esp + 0x2c]
sub eax, 1
jne 0x4bd1c3
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0058bf82
add esp, 4
cmp esi, 1
jmp 0x4bd1e7
cmp dword [edi + 0x60], eax
jne 0x4bd215
lea eax, [edi + 0x5c]
mov edx, 1
push eax
mov ecx, edi
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x133], 0
jne 0x4bd24a
lea eax, [edi + 0x5c]
mov edx, 0xb
push eax
mov ecx, edi
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
cmp word [esp + 0x60], 2
jne 0x4bd2a0
mov ecx, dword [edi + 0x20]
mov edx, edi
push 0
push 0x4c3b50
push 0x7d0
mov dword [edi + 0x104], 1
call fcn.004b2450
add esp, 0xc
lea edx, [edi + 0xcc]
mov ecx, edi
push 0
call fcn.004bbca0
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x5c]
mov edx, 0xa
push eax
mov ecx, edi
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
push 0
xor edx, edx
mov ecx, edi
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x80]
mov edx, 0x1c
push 0x10
push eax
lea ecx, [edi + 0x78]
call fcn.00401000
mov ax, word [edi + 0x5e]
add esp, 8
mov ecx, edi
cmp ax, word [edi + 0x7a]
jne 0x4bd343
lea eax, [edi + 0x5c]
mov edx, 2
push eax
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
push 0
lea edx, [edi + 0xe8]
mov dword [edi + 0x104], 2
call fcn.004bbca0
mov ecx, dword [edi + 0x20]
add esp, 4
mov edx, edi
push 0
push 0x4c3b50
push 0x7d0
call fcn.004b2450
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x80]
mov edx, 0x1c
push 0x10
push eax
lea ecx, [edi + 0x94]
call fcn.00401000
mov ax, word [edi + 0x7a]
add esp, 8
cmp ax, word [edi + 0x96]
mov ecx, edi
lea eax, [edi + 0x5c]
push eax
jne 0x4bd3e5
mov edx, 4
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov edx, 3
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x5c]
mov edx, 4
push ecx
mov ecx, edi
call fcn.004bc380
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x15c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret