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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
cmp dword [0xbdabf0], 0
push ebx
push esi
push edi
je 0x4b84ff
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax*4 + 0x20a514c]
test eax, eax
js 0x4b84ff
cmp eax, 0x1194
jge 0x4b84ff
cmp dword [ebx + 4], 3
jne 0x4b84ff
movzx eax, word [ebx + 0x78]
cmp eax, 1
je 0x4b8225
cmp eax, 6
jne 0x4b84ff
cmp byte [ebx + 0xa], 0
jg 0x4b84ff
cmp byte [ebx + 0x9c0], 0
jne 0x4b84ff
mov eax, dword [ebp + 8]
mov ecx, 0xa0cdc0
movzx edi, word [eax + 4]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], edi
push eax
call fcn.00405650
mov esi, dword [esp + 0x1c]
mov eax, dword [0xa0cdc0]
cmp byte [esi + 0xd], 0
jne 0x4b826f
cmp edi, dword [esi + 0x10]
jge 0x4b8271
mov esi, eax
cmp esi, eax
je 0x4b84ff
add esi, 0x14
lea edi, [esp + 0x30]
mov ecx, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 0x60c], eax
jl 0x4b84ff
mov edi, dword [esp + 0x30]
push edi
push ebx
call fcn.005089c0
mov esi, eax
test esi, esi
jne 0x4b846c
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4b82c6
push eax
push ebx
call fcn.005088c0
test eax, eax
je 0x4b84ff
mov esi, dword [esp + 0x9c]
push esi
push ebx
call fcn.005089c0
mov edx, 0xffff
test esi, esi
je 0x4b8306
test eax, eax
je 0x4b84ff
movzx ecx, word [eax + 8]
cmp cx, dx
je 0x4b8306
mov edx, 0x12c
cmp cx, dx
jb 0x4b8306
movzx eax, byte [eax + 4]
inc eax
cmp eax, 0xa
jb 0x4b84ff
mov esi, dword [esp + 0xa0]
push esi
push ebx
call fcn.005089c0
test esi, esi
je 0x4b8348
test eax, eax
je 0x4b84ff
movzx ecx, word [eax + 8]
mov edx, 0xffff
mov esi, 0x12c
cmp cx, dx
je 0x4b8352
cmp cx, si
jb 0x4b8352
movzx eax, byte [eax + 4]
inc eax
cmp eax, 0xa
jb 0x4b84ff
jmp 0x4b8352
mov edx, 0xffff
mov esi, 0x12c
mov eax, dword [esp + 0x38]
cmp eax, 1
jle 0x4b8429
dec eax
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x620]
add eax, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
movzx eax, word [eax + 4]
cmp ax, dx
je 0x4b83fd
cmp ax, si
jb 0x4b83fd
mov edi, eax
mov ecx, 0xa0cdc0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00405650
mov esi, dword [esp + 0x2c]
cmp byte [esi + 0xd], 0
jne 0x4b83b5
cmp edi, dword [esi + 0x10]
jl 0x4b83b5
mov eax, dword [0xa0cdc0]
jmp 0x4b83bc
mov eax, dword [0xa0cdc0]
mov esi, eax
cmp esi, eax
je 0x4b83f8
mov eax, dword [esp + 0x34]
lea edi, [esp + 0xc0]
add esi, 0x14
mov ecx, 0x24
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0xc4], eax
jne 0x4b83f8
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xc8], eax
jne 0x4b83f8
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
inc eax
cmp eax, 0xa
jae 0x4b8425
mov edx, 0xffff
mov eax, dword [esp + 0x10]
mov esi, 0x12c
inc dword [esp + 0xc]
add eax, 0x14
cmp dword [esp + 0xc], 0x78
mov dword [esp + 0x10], eax
jl 0x4b8377
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esp + 0x30]
push dword [esp + 0x98]
mov esi, dword [esp + 0x40]
push ebx
dec esi
call fcn.005088c0
test eax, eax
jne 0x4b8451
mov eax, dword [esp + 0x98]
test eax, eax
jle 0x4b8462
cmp eax, edi
sete al
jmp 0x4b845a
push esi
push edi
mov ecx, eax
call fcn.00507200
test al, al
je 0x4b84ff
push esi
push edi
push ebx
call fcn.00508920
jmp 0x4b84ac
movzx edi, byte [esi + 4]
lea eax, [edi + 1]
cmp eax, dword [esp + 0x40]
jge 0x4b84ff
push dword [esp + 0x30]
push ebx
call fcn.005088c0
test eax, eax
je 0x4b849b
push edi
push dword [esp + 0x34]
mov ecx, eax
call fcn.00507200
test al, al
je 0x4b84ff
movzx eax, byte [esi + 4]
mov ecx, esi
inc eax
push eax
push dword [esp + 0x34]
call fcn.00507200
mov esi, dword [ebp + 0xc]
push esi
call fcn.004b8700
push ecx
push ebx
call fcn.00517640
mov eax, dword [ebx + 0x60c]
mov ecx, 0x6509a4
sub eax, dword [esp + 0x3c]
push esi
mov dword [ebx + 0x60c], eax
call fcn.004d9990
mov ax, word [ebx + 0x60c]
mov word [esp + 0x1a], ax
lea eax, [esp + 0x14]
push 8
push eax
push esi
mov dword [esp + 0x20], 0x52f308c1
mov word [esp + 0x24], 0
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8