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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, edx
mov edx, dword [esp + 0x68]
mov edx, dword [edx + ecx*4 + 4]
mov edx, dword [edx + ecx*4 + 4]
mov eax, ecx
xor eax, 2
or ebx, 0xffffffff
sar eax, 1
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x4bbdad
lea esp, [esp]
sub esi, 1
mov edx, dword [edx + eax*4 + 4]
mov edx, dword [edx + ecx*4 + 4]
jne 0x4bbda0
cmp edi, 1
mov esi, dword [edx + 0xc]
mov dword [esp + 0x10], esi
jle 0x4bbdcd
lea eax, [edi - 1]
lea esp, [esp]
sub eax, 1
mov edx, dword [esi]
mov dword [esp + 0x10], edx
mov esi, edx
jne 0x4bbdc0
mov edi, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
mov esi, dword [esp + 0x64]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + edi*4]
sub eax, 1
cmp ecx, 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
je 0x4bbdf9
cmp ecx, 2
jne 0x4bbe00
xor edx, 1
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4bbe1b
test byte [eax + edi], 2
jne 0x4bbe1b
add dl, dl
add dl, dl
mov ecx, eax
lea eax, [ecx + edi]
or dl, 2
or byte [eax], dl
mov edx, dword [esp + 0x68]
xor esi, esi
add edx, 4
mov dword [esp + 0x24], edx
jmp 0x4bbe30
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + esi*4 + 4]
mov edi, dword [esp + 0x68]
mov eax, esi
xor eax, 2
lea ecx, [esi + 1]
mov dword [esp + 0x20], edx
sar eax, 1
mov dword [esp + 0x38], ecx
xor edx, edx
and ecx, 3
mov ecx, dword [edi + ecx*4 + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
mov edi, 1
je 0x4bbed5
cmp ecx, dword [esp + 0x10]
je 0x4bbec8
mov eax, dword [esp + 0x2c]
cmp dword [ecx + 0xc], eax
jne 0x4bbec8
mov eax, dword [ecx + 0x10]
cmp eax, ebp
jne 0x4bbe8b
xor eax, eax
jmp 0x4bbeaa
jge 0x4bbe95
sub eax, ebp
add eax, dword [esp + 0x14]
jmp 0x4bbe97
sub eax, ebp
cmp dword [esp + 0x28], 0
je 0x4bbea6
mov ebx, dword [esp + 0x14]
sub ebx, eax
mov eax, ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jl 0x4bbeb2
cmp eax, ebx
jge 0x4bbec8
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [ecx]
add edi, 1
test ecx, ecx
jne 0x4bbe71
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + eax*4 + 4]
cmp eax, dword [esp + 0x34]
je 0x4bbef7
mov eax, dword [eax + esi*4 + 4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
add edx, 1
jmp 0x4bbe61
mov esi, dword [esp + 0x38]
add dword [esp + 0x24], 4
cmp esi, 4
jl 0x4bbe30
test ebx, ebx
jge 0x4bbf29
push str.ERROR__Failed_to_find_exit_point__n
push 2
push 0x2359
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
xor ecx, ecx
cmp dword [eax + 0x18], 1
mov eax, dword [eax + 8]
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
push eax
lea ecx, [eax + 0x28]
push ecx
add eax, 0x18
push eax
push edx
push edi
call fcn.004bae80
add esp, 0x18
cmp dword [esp + 0x28], 0
je 0x4bbfd8
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 0x10]
je 0x4bc03b
lea ecx, [ecx]
mov edx, dword [edi + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
mov esi, ebp
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [edi + 4]
shl esi, 4
add eax, esi
push eax
push ecx
call fcn.004326d0
add esp, 0xc
test eax, eax
jne 0x4bbfcd
push 1
push eax
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x78]
add ecx, esi
push ecx
push edx
push edi
call fcn.004bae80
add esp, 0x18
sub ebp, 1
jns 0x4bbfc2
mov ebp, dword [esp + 0x14]
add ebp, 0xffffffff
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 0x10]
jne 0x4bbf70
jmp 0x4bc03b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x50
ret
mov ecx, dword [esp + 0x18]
cmp ebp, dword [ecx + 0x10]
je 0x4bc03b
add ebp, 1
cmp ebp, dword [esp + 0x14]
jne 0x4bbfec
xor ebp, ebp
mov eax, dword [edi + 0x28]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [eax + ebx*4]
mov esi, ebp
lea edx, [esp + 0x48]
push edx
mov edx, dword [edi + 4]
shl esi, 4
add ecx, esi
push ecx
push edx
call fcn.004326d0
add esp, 0xc
test eax, eax
jne 0x4bbfcd
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + ebx*4]
push 1
push eax
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x78]
add edx, esi
push edx
push eax
push edi
call fcn.004bae80
mov ecx, dword [esp + 0x30]
add esp, 0x18
cmp ebp, dword [ecx + 0x10]
jne 0x4bbfe1
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
pop edi
mov dword [edx], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x50
ret