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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x6019e4]
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 0x4bdcd7
mov eax, dword [ebp + 8]
add eax, 0xffffffec
cmp eax, 0x26fc
ja 0x4bdcd7
cmp word [ecx], 2
jne 0x4bdcd7
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 0x4bdcd7
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 0x4bdcd7
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 0x4bce9c
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 + 0x5f10e0]
mov byte [edx - 2], al
movzx eax, byte [ecx + 0x5f10e0]
mov byte [edx - 1], al
cmp esi, 0xc
jl 0x4bce63
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 0x4bd315
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 0x4bdcd7
cmp dword [esp + 0x5c], 0
mov edx, dword [esp + 0x40]
je 0x4bcf1b
mov eax, 0x8028
cmp dx, ax
jne 0x4bd2eb
movzx eax, dx
cmp eax, 0x20
ja 0x4bd1d6
je case.0x4bcf37.1
dec eax
cmp eax, 8
ja case.0x4bd1e0.32811
jmp dword [eax*4 + 0x4bdcf0]
cmp dword [esp + 0x10], 0
lea edx, [esp + 0xac]
je 0x4bcf82
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 + 0x5f10e0]
mov byte [edx - 2], al
movzx eax, byte [ecx + 0x5f10e0]
mov byte [edx - 1], al
cmp esi, 0xc
jl 0x4bcf52
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 0x4bd20e
cmp esi, 9
jb case.0x4bd1e0.32811
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp byte [eax + ecx + 0xc], 0x3a
jne 0x4bd20e
mov eax, dword [esp + 0x44]
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x4bd20e
mov dword [esp + 0x3c], 0x14
mov dword [esp + 0x5c], 1
cmp esi, 0x14
jne case.0x4bd1e0.32811
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bd015
lea ecx, [esp + 0x138]
push ecx
lea edx, [edi + 0x108]
mov ecx, eax
call fcn.004bc250
lea esi, [esp + 0x13c]
mov dword [esp + 0x58], 0x20
add esp, 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], 1
jmp 0x4bd07c
mov eax, dword [esp + 0x10]
mov dl, byte [eax]
cmp dl, 0xa
jae 0x4bd03e
movzx eax, dl
mov eax, dword [edi + eax*4 + 0x148]
test eax, eax
je 0x4bd03e
mov esi, dword [eax + 4]
mov dword [esp + 0x40], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x54], esi
jmp 0x4bd080
mov al, dl
xor al, 0x80
cmp al, 0xa
jae 0x4bdcd7
movzx eax, dl
xor eax, 0x80
mov eax, dword [edi + eax*4 + 0x170]
test eax, eax
je 0x4bdcd7
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 0x4bd0b9
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.004e69f0
push 0
mov esi, eax
call fcn.004d1c80
push eax
push dword [esp + 0x5c]
push dword [esp + 0x4c]
push esi
call fcn.004e6bd0
add esp, 0x14
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.004e6de0
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.004e6b20
add esp, 0xc
push esi
call fcn.004e6980
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 0x4bd139
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 0x4bdcd7
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 0x4bdcd7
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bd160
jmp case.0x4bd1e0.32811
mov esi, dword [esp + 0x18]
cmp byte [esi + ecx + 5], 1
jne case.0x4bd1e0.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.0x4bd1e0.32811
mov edx, 0x1221
xor ax, dx
xor ecx, 0x42a41221
mov word [esp + 0x82], ax
mov dword [esp + 0x84], ecx
jmp case.0x4bd1e0.32811
sub eax, 0x8028
cmp eax, 4
ja case.0x4bd1e0.32811
jmp dword [eax*4 + 0x4bdd14]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x58], 1
push dword [esi + ecx + 4]
push dword [esi + ecx]
call fcn.004ae8d0
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 0x4bd227
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 0x4bd32b
mov eax, dword [esp + 0x18]
jmp 0x4bcec0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], 1
push dword [eax + ecx + 4]
push dword [eax + ecx]
jmp 0x4bd1fa
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
cmp byte [esi + ecx + 5], 1
jne 0x4bd20e
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 0x4bd20e
cmp esi, 4
jne 0x4bd2f3
lea eax, [ecx + 8]
cmp eax, dword [esp + 0x28]
jne 0x4bdcd7
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.004bbad0
xor eax, 0x5354554e
cmp eax, esi
je case.0x4bd1e0.32811
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x28]
mov esi, ecx
jmp 0x4bd32b
test si, si
jne 0x4bdcd7
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
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 0x4bdcd7
mov edx, dword [esp + 0x38]
mov eax, 0x100
and edx, 0x110
mov dword [esp + 0x38], edx
jne 0x4bd81e
cmp dword [esp + 0x24], 1
jne 0x4bd8f4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bd805
mov al, byte [eax]
cmp al, 0x61
movsx eax, al
jl 0x4bd371
sub eax, 0x61
jmp 0x4bd374
sub eax, 0x41
mov dword [esp + 0x30], eax
cmp eax, 0xa
jge 0x4bd805
lea edx, [eax + 0x52]
mov esi, dword [edi + edx*4]
lea edx, [edi + edx*4]
mov dword [esp + 0x28], edx
test esi, esi
je 0x4bd805
mov edx, dword [esp + 0x14]
cmp word [edx], 2
jne 0x4bd47a
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x4bd439
cmp dword [esi + 0x5c], eax
jne 0x4bd439
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 0x4bd3ed
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bd3d7
jmp 0x4bd47a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp word [eax], 0
je 0x4bd412
inc ecx
add eax, 0x1c
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp ecx, 8
jge 0x4bd47a
mov edx, dword [esp + 0x14]
jmp 0x4bd3d0
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 0x4bd47f
xor edx, edx
test eax, eax
jle 0x4bd47a
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 0x4bd469
mov edi, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, dword [edi + 4]
mov edi, dword [esp + 0x50]
je 0x4bd473
mov eax, dword [esi + 0x64]
inc edx
add ecx, 6
cmp edx, eax
jl 0x4bd442
jmp 0x4bd47a
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 0x4bd543
mov edx, dword [esp + 0x14]
movzx edx, word [edx]
cmp ax, dx
jne 0x4bd520
cmp edx, 0x17
mov edx, dword [esp + 0x20]
cmove ecx, esi
mov esi, dword [esp + 0x14]
sub ecx, 4
jb 0x4bd4e1
nop dword [eax + eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4bd4ea
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4bd4d0
cmp ecx, 0xfffffffc
je 0x4bd572
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4bd51b
cmp ecx, 0xfffffffd
je 0x4bd572
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4bd51b
cmp ecx, 0xfffffffe
je 0x4bd572
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4bd51b
cmp ecx, 0xffffffff
je 0x4bd572
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4bd572
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 0x4bd572
mov esi, 0x1c
jmp 0x4bd4a0
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 0x4bd805
mov ecx, dword [eax + 0x6c]
cmp ecx, 1
jne 0x4bd591
cmp dword [esp + 0x34], 0
jne 0x4bd5a5
mov edx, dword [esp + 0x58]
test ecx, ecx
jne 0x4bd651
test edx, edx
je 0x4bd651
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.004bc450
lea esi, [eax + 0x20]
jmp 0x4bd74f
cmp ecx, 1
jne 0x4bd676
test edx, edx
je 0x4bd676
push dword [eax + 0x4f]
push dword [eax + 0x4b]
call fcn.004ae8d0
add esp, 8
cmp edx, dword [esp + 0x48]
jb 0x4bd6b1
ja 0x4bd676
cmp eax, dword [esp + 0x4c]
jb 0x4bd6b1
mov eax, dword [esi]
cmp dword [eax + 0x6c], 0
jne 0x4bd7ed
cmp dword [esp + 0x34], 0
je 0x4bd7ed
push dword [eax + 0x4f]
push dword [eax + 0x4b]
call fcn.004ae8d0
add esp, 8
cmp edx, dword [esp + 0x48]
jb 0x4bd7ed
ja 0x4bd6b1
cmp eax, dword [esp + 0x4c]
jb 0x4bd7ed
movaps xmm0, xmmword [0x5f2080]
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.004c56c0
add esp, 4
lea ecx, [esp + 0xc8]
mov edx, 0x111
mov esi, eax
push dword [esp + 0x10]
call fcn.004c5470
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.004c54e0
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.004c54e0
add esp, 0xc
lea ecx, [esp + 0xc8]
add esi, eax
lea eax, [esp + 0x138]
mov edx, esi
push 0x20
push eax
call fcn.004bc450
add esi, eax
add esp, 8
lea ecx, [esp + 0xc8]
mov edx, esi
call fcn.004bc4d0
push 2
push dword [esp + 0x18]
add esi, eax
lea edx, [esp + 0xd0]
push esi
push ecx
mov ecx, edi
call fcn.004bca90
mov esi, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [esi]
cmp dword [eax + 0x5c], 0
je 0x4bd805
cmp dword [eax + 0x64], 0
jle 0x4bd805
test eax, eax
je 0x4bd805
cmp dword [eax + 0x68], 0xa
jge 0x4bd805
cmp dword [eax + 0x74], 0
jge 0x4bd805
lea eax, [esp + 0x90]
push 0xc
push eax
call fcn.004e3140
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.004be0f0
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
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.004be870
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
cmp dx, ax
mov edx, dword [esp + 0x10]
jne 0x4bd8f8
mov al, byte [edx]
cmp al, 0xa
ja 0x4bd8f8
movsx eax, al
mov ecx, dword [edi + eax*4 + 0x148]
mov dword [esp + 0x3c], ecx
cmp dword [ecx + 0x6c], 0
jne 0x4bd8f8
cmp dword [ecx + 0x74], 0
jge 0x4bd8f8
xor edx, edx
mov dword [esp + 0x34], edx
cmp dword [ecx + 0x64], edx
jle 0x4bd8f4
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 0x4bd9b1
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 0x4bd9a5
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4bd8d0
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.0x4bd99e
mov cl, byte [edx]
mov al, cl
xor al, 0x80
cmp al, 0xa
jae 0x4bd959
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.004b3010
mov edx, dword [esi + 0x170]
mov ecx, dword [edi + 0x20]
inc edx
push 0
push 0x4bc940
push 0x3a98
call fcn.004b2bf0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edx]
cmp eax, dword [edi + 0x128]
jne case.default.0x4bd99e
mov eax, dword [edx + 4]
cmp eax, dword [edi + 0x12c]
jne case.default.0x4bd99e
mov eax, dword [edx + 8]
cmp eax, dword [edi + 0x130]
jne case.default.0x4bd99e
mov ecx, dword [edi + 0x20]
mov edx, edi
call fcn.004b3010
mov eax, dword [edi + 0x104]
cmp eax, 3
ja case.default.0x4bd99e
jmp dword [eax*4 + 0x4bdd28]
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 0x4bd880
jmp 0x4bd8f4
cmp word [esp + 0x80], 2
jne 0x4bdb6c
cmp word [esp + 0x60], 2
mov esi, 0x1c
jne 0x4bda24
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 0x4bda84
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], esi
call fcn.004ae8f0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x4bdab5
test eax, eax
jle 0x4bda76
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 0x4bda63
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0058c812
add esp, 4
cmp esi, 1
jmp 0x4bda87
cmp dword [edi + 0x60], eax
jne 0x4bdab5
lea eax, [edi + 0x5c]
mov edx, 1
push eax
mov ecx, edi
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x133], 0
jne 0x4bdaea
lea eax, [edi + 0x5c]
mov edx, 0xb
push eax
mov ecx, edi
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
cmp word [esp + 0x60], 2
jne 0x4bdb40
mov ecx, dword [edi + 0x20]
mov edx, edi
push 0
push 0x4c43f0
push 0x7d0
mov dword [edi + 0x104], 1
call fcn.004b2bf0
add esp, 0xc
lea edx, [edi + 0xcc]
mov ecx, edi
push 0
call fcn.004bc540
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x5c]
mov edx, 0xa
push eax
mov ecx, edi
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
push 0
xor edx, edx
mov ecx, edi
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
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 0x4bdbe3
lea eax, [edi + 0x5c]
mov edx, 2
push eax
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
push 0
lea edx, [edi + 0xe8]
mov dword [edi + 0x104], 2
call fcn.004bc540
mov ecx, dword [edi + 0x20]
add esp, 4
mov edx, edi
push 0
push 0x4c43f0
push 0x7d0
call fcn.004b2bf0
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
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 0x4bdc85
mov edx, 4
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov edx, 3
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x5c]
mov edx, 4
push ecx
mov ecx, edi
call fcn.004bcc20
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x15c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret