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

Disassembly:
push 0x24
mov eax, 0x518a5f
call fcn.004e56ac
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [eax + 0x88], ebx
mov eax, dword [eax + 0x84]
mov eax, dword [eax + 0x14]
push ebx
push 0x2e
pop edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
call fcn.004b119d
mov dword [ebp - 4], ebx
push 1
cmp byte [ebp + 0xc], bl
je 0x4b01c3
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push esi
mov ebx, edi
call fcn.004ae2db
mov ecx, dword [esi]
mov eax, 0x54b3f8
cmp ecx, dword [eax]
je 0x4b01d8
lea ecx, [ebp - 0x2c]
call fcn.004b11bb
xor al, al
call fcn.004e5784
ret 8
mov eax, dword [ebp - 0x28]
add eax, 4
push eax
mov eax, dword [ebp - 0x14]
push 0x2a
pop ebx
call fcn.004ae2db
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp + 8]
add esi, 4
lea edi, [ebp - 0x18]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebx + 0xa]
mov word [edi], ax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
lea esi, [eax + 6]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0xc]
mov word [edi], cx
lea esi, [eax + 8]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0xe]
mov word [edi], cx
lea esi, [eax + 0xa]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0x10]
mov word [edi], cx
lea esi, [eax + 0xc]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0x12]
mov word [edi], cx
lea esi, [eax + 0xe]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0x14]
mov dword [edi], ecx
lea esi, [eax + 0x10]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x18]
mov dword [edi], ecx
lea esi, [eax + 0x14]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x1c]
mov dword [edi], ecx
lea esi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1c]
lea edi, [ebp + 0xc]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1e]
lea edi, [ebp - 0x1c]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x20]
lea edi, [ebp - 0x10]
movsw word es:[edi], word [esi]
xor edx, edx
lea edi, [ebx + 0x20]
mov word [edi], dx
lea esi, [eax + 0x22]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0x22]
mov word [edi], dx
lea esi, [eax + 0x24]
movsw word es:[edi], word [esi]
lea edi, [ebx + 0x78]
mov dword [edi], ecx
lea esi, [eax + 0x26]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x2c]
lea esi, [eax + 0x2a]
mov dword [edi], ecx
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x2c]
call fcn.004b11cb
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
movzx edi, word [ebp + 0xc]
mov byte [ebx + 8], al
shr eax, 8
test byte [ebx + 0xc], 1
mov byte [ebx + 0xac], al
setne al
dec al
mov byte [ebx + 0x7e], al
movzx eax, word [esi + 0x24]
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebx + 0x8c]
call fcn.004b11e2
test edi, edi
je 0x4b02d4
push 1
push dword [ebx + 0x90]
mov ebx, edi
mov eax, esi
call fcn.004ae2db
mov ebx, dword [ebp + 8]
push dword [ebp - 0x1c]
lea edi, [ebx + 0x48]
push esi
push edi
mov dword [ebp + 8], edi
call fcn.004b1296
test al, al
jne 0x4b02f9
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.004b11bb
mov al, bl
jmp 0x4b01bb
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
and dword [ebp + 0xc], 0
test eax, 0xfffffffc
jle 0x4b0330
push dword [ebp + 0xc]
mov eax, edi
call fcn.004aafc8
cmp word [eax + 0xe], 0xa
je 0x4b03e8
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc dword [ebp + 0xc]
sar eax, 2
cmp dword [ebp + 0xc], eax
jl 0x4b030a
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b039b
cmp dword [eax + 8], 0x20
jb 0x4b039b
mov eax, dword [eax + 4]
lea esi, [eax + 4]
lea edi, [ebp + 0xc]
movsw word es:[edi], word [esi]
cmp word [ebp + 0xc], 1
jne 0x4b0395
lea esi, [eax + 6]
lea edi, [ebp + 0xc]
movsw word es:[edi], word [esi]
cmp word [ebp + 0xc], 0x18
jne 0x4b0395
lea ecx, [eax + 8]
call fcn.004b0493
mov esi, dword [ebp - 0x18]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
mov eax, dword [esi + 4]
lea ecx, [eax + 0x10]
call fcn.004b0493
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], edx
mov esi, dword [esi + 4]
lea ecx, [esi + 0x18]
call fcn.004b0493
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edx
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
cmp word [ebp - 0x10], 0
je 0x4b03cb
movzx edi, word [ebp - 0x10]
push 0
lea eax, [ebx + 0x9c]
call fcn.004b11e2
test edi, edi
je 0x4b03c8
push 1
push dword [ebx + 0xa0]
mov ebx, edi
mov eax, esi
call fcn.004ae2db
mov edi, dword [ebp + 8]
call fcn.004b143d
mov ax, word [ebp - 0x20]
cmp word [esi + 0x24], ax
je 0x4b03f0
mov eax, dword [esi + 0x3c]
and eax, 0x70
cmp al, 0x70
je 0x4b03f0
xor al, al
jmp 0x4b03f2
mov dword [ebp - 0x18], eax
jmp 0x4b0337
mov al, 1
mov bl, al
jmp 0x4b02ea