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

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x58]
xor ebp, ebp
mov edx, esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call fcn.004ba4b0
cmp eax, ebp
jne 0x4bae69
mov edx, dword [esi + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
cmp edx, ebp
ja 0x4bae72
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x4c
ret
xor ebp, ebp
mov ecx, dword [esi]
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], eax
cmp ecx, ebp
je 0x4bae96
cmp ecx, 0x21
je 0x4bae96
cmp ecx, 0x30101
jne 0x4bb04e
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
cmp edx, 4
jne 0x4baf4d
mov eax, dword [esi + 0xc]
mov esi, dword [eax + ebx*8]
mov eax, dword [eax + ebx*8 + 4]
lea edi, [ebx*4]
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + edi + 0x50]
cmp ebx, 2
jae 0x4baf1f
xor ecx, ecx
mov dword [esp + 0x10], esi
cmp esi, esi
jne 0x4bb1c2
cmp ecx, eax
jne 0x4bb1c2
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
push esi
push eax
call edx
add esp, 8
test eax, eax
jne 0x4baf08
test esi, esi
jne 0x4bb1c2
mov edx, dword [esp + 0x80]
mov ecx, edi
neg ecx
mov dword [ecx + edx + 4], eax
mov edi, eax
mov dword [esp + ecx + 0x48], esi
jmp 0x4baf4d
jne 0x4bb1cf
xor edx, edx
cmp eax, edx
ja 0x4bb1a8
jb 0x4baf39
cmp esi, ecx
ja 0x4bb1a8
mov edi, dword [esp + 0x74]
sub edi, esi
add edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x64]
mov eax, dword [esi + ebp*8 + 4]
mov ebx, dword [esi + ebp*8]
push ebp
mov dword [esp + 0x2c], eax
call fcn.004ba610
add eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
adc edx, dword [esp + 0x74]
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 0xc]
push esi
mov dword [esp + 0x3c], eax
call edx
add esp, 0x10
test eax, eax
jne 0x4bae67
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebp, ecx
or ebp, edx
jne 0x4bafd2
xor ecx, ecx
cmp ebx, dword [esp + 0x10]
jne 0x4bb1b5
mov eax, dword [esp + 0x28]
cmp eax, ecx
jne 0x4bb1b5
push edi
push eax
push ebx
call fcn.004ba3d0
add esp, 0xc
test eax, eax
jne 0x4bae67
mov ebx, dword [esp + 0x14]
jmp 0x4bb18a
cmp ecx, 0x30101
jne 0x4bb00e
test edx, edx
jne 0x4bb00e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push ebx
push eax
mov edx, edi
mov ebx, esi
call fcn.004ba240
add esp, 0x10
test eax, eax
jne 0x4bae67
mov ebx, dword [esp + 0x14]
jmp 0x4bb18a
cmp ecx, 0x21
jne 0x4bb1cf
test edx, edx
jne 0x4bb1cf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push esi
push edx
push ebx
push eax
mov edx, edi
call fcn.004bac70
add esp, 0x14
test eax, eax
jne 0x4bae67
mov ebx, dword [esp + 0x14]
jmp 0x4bb18a
mov eax, dword [eax + 0xc]
cmp ecx, 0x303011b
jne 0x4bb136
cmp eax, ebp
jne 0x4bb136
mov esi, dword [esp + 0x64]
mov ebp, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esp + 0x40], ebp
cmp ebx, 3
jne 0x4bb1cf
push 1
call fcn.004ba610
add eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
adc edx, dword [esp + 0x74]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x38], eax
push 0
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x48], edx
call ecx
add esp, 0x10
test eax, eax
jne 0x4bae67
cmp edi, edi
jne 0x4bb1c2
cmp eax, ebp
jne 0x4bb1c2
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
push edi
push eax
call edx
mov ebp, dword [esp + 0x88]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x4bb0e2
test edi, edi
jne 0x4bb1c2
push eax
mov eax, dword [esp + 0x44]
push eax
push edi
call fcn.004ba3d0
add esp, 0xc
test eax, eax
jne 0x4bae67
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [ebp + 4]
push edi
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [ebp]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.004b62b0
add esp, 0x28
test eax, eax
jne 0x4bae67
jmp 0x4bb18a
cmp ebx, 1
jne 0x4bb1cf
cmp ecx, 0x3030103
jne 0x4bb14b
cmp eax, ebp
je 0x4bb16d
cmp ecx, 0x3030501
jne 0x4bb1cf
cmp eax, ebp
jne 0x4bb1cf
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ebp
push ebp
push ecx
push edx
call fcn.004b6580
add esp, 0x10
jmp 0x4bb18a
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ebp
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x34], ebp
call fcn.004b6600
add esp, 0x14
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 0x10]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, edx
jb 0x4bae70
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 5
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 2
pop ebp
add esp, 0x4c
ret
pop edi
pop ebx
pop esi
mov eax, 4
pop ebp
add esp, 0x4c
ret