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

Disassembly:
mov ecx, dword [0x95eda0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bbd56
sub esp, 0x6c
mov edx, dword [esp + 0x80]
lea ebx, [edx + 1]
mov ebp, dword [esp + 0x84]
xor eax, eax
jmp 0x4bb875
mov esi, dword [esp + 0x34]
lea eax, [esi + 1]
mov ebx, ecx
cmp eax, 5
jge 0x4bb95f
mov dword [esp + 0x34], eax
jmp 0x4bb96c
cmp ebp, ebx
je 0x4bba68
sub ebp, edx
cmp ebp, 0x32
jl 0x4bba5c
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4bbd40
lea ebp, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
mov esi, dword [eax + 4]
cmp ecx, ebp
jbe 0x4bbd39
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
lea ecx, [edi + ebx*8 + 4]
lea ebp, [edi + ebx*8 - 8]
mov dword [esp + 0x68], ebp
mov esi, dword [ebp + 4]
lea edi, [edi + ebx*8 - 4]
mov dword [esp + 0x64], edi
mov ebp, dword [ebp]
mov edi, dword [eax]
mov dword [ecx], esi
mov esi, dword [0x95f020]
mov ecx, ebx
sub ebx, edx
test esi, esi
je 0x4bb916
mov esi, edi
call fcn.004717f0
mov dword [edi], ebp
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [edi + 8], esi
mov edx, dword [esp + 0x68]
mov ecx, dword [edx]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov edi, esi
mov dword [eax], ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x64]
mov dword [esi], ebp
mov ebp, dword [esp + 0x68]
mov dword [ebp], edi
cmp ebx, 2
jl 0x4bb937
mov eax, dword [esp + 0x40]
jmp 0x4bbc15
mov ebx, dword [esp + 0x84]
mov ebp, ebx
sub ebx, ecx
cmp ebx, 2
jl 0x4bb86c
lea ebx, [ecx + 1]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
jmp 0x4bbaa4
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
inc ebx
mov dword [esp + 0x38], ebx
cmp ebp, ebx
jg 0x4bb97b
xor ecx, ecx
jmp 0x4bba4f
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
jbe 0x4bbd4e
lea esi, [ebx - 1]
mov edi, dword [esp + 0x74]
lea eax, [edi + ebx*8]
cmp ecx, esi
jbe 0x4bbd47
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
lea ebp, [edi + ebx*8 - 8]
mov esi, dword [ebp]
mov dword [esp + 0x4c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x1c], ebp
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4bba07
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4bba07
mov eax, 1
jmp 0x4bba34
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
call fcn.004023b0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x84]
mov ecx, eax
mov eax, dword [esp + 0x34]
test cl, cl
jne 0x4bb96b
jmp 0x4bb887
mov byte [esp + 0x88], 0
add esp, 0x6c
ret
mov byte [esp + 0x88], 1
add esp, 0x6c
ret
mov dword [ebp], ecx
mov dword [ebx], edx
mov eax, dword [esp + 0x5c]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
cmp ebp, ebx
jle 0x4bb86c
cmp edi, ebx
jbe 0x4bbbef
lea edx, [ebx - 1]
lea ecx, [esi + ebx*8]
cmp edi, edx
jbe 0x4bbbe6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], ecx
mov edx, dword [eax]
test byte [edx], al
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov ebp, dword [ecx + 4]
mov dword [esp + 0x20], ebp
lea edi, [esi + ebx*8 - 8]
mov dword [esp + 0x60], edi
mov eax, dword [edi]
mov dword [esp + 0x44], eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4bbb37
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4bbb37
mov eax, 1
jmp 0x4bbb64
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.004023b0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4bbbc3
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x95f020]
test edi, edi
je 0x4bba74
call fcn.004717f0
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4bba74
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
jmp 0x4bb86c
mov eax, edx
mov ecx, edi
call fcn.00471840
mov eax, ebx
mov ecx, edi
call fcn.00471840
mov dword [ebp], ecx
mov dword [ebx], edx
mov ebx, dword [esp + 0x5c]
mov dword [esi], ebx
mov ebx, dword [esp + 0x30]
lea eax, [ebx - 1]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
test eax, eax
jle 0x4bb937
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test byte [edx], al
mov edx, dword [esp + 0x74]
lea ebx, [edx + eax*8]
mov dword [esp + 0x68], ebx
mov ebp, dword [ebx]
mov dword [esp + 0x54], ebp
mov esi, dword [ebx + 4]
mov dword [esp + 0x24], esi
lea edi, [edx + eax*8 - 8]
mov dword [esp + 0x60], edi
mov ecx, dword [edi]
mov dword [esp + 0x48], ecx
mov ebx, dword [edi + 4]
mov dword [esp + 0x18], ebx
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4bbc9d
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.004024a0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4bbc9d
mov eax, 1
jmp 0x4bbcca
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.004023b0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
test al, al
je 0x4bbd29
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x74]
lea ebp, [ebx + edx*8 + 4]
mov esi, dword [esp + 0x60]
mov edi, dword [esi + 4]
mov eax, ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
lea ebx, [ebx + edx*8 - 4]
mov edx, dword [ebp + 4]
mov ecx, dword [esi]
mov dword [eax], edi
mov edi, dword [0x95f020]
test edi, edi
je 0x4bbbf8
call fcn.004717f0
mov dword [edi], ecx
mov eax, dword [ebp]
mov dword [edi + 4], eax
mov eax, edx
mov edx, dword [esp + 0x5c]
mov dword [edi + 8], edx
mov edx, dword [esi]
mov dword [edi + 0xc], edx
mov edx, eax
jmp 0x4bbbf8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
jmp 0x4bb937
mov eax, ebp
call fcn.00471840
mov eax, ebx
call fcn.00471840
mov eax, esi
call fcn.00471840
mov eax, ebx
call fcn.00471840
nop
call fcn.004703c0
jmp fcn.004bb840