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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x97efc0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ebx
push ebp
mov ecx, dword [eax + 0x10]
xor ebp, ebp
push esi
mov esi, dword [eax + 4]
mov dword [esp + 0x20], edx
lea edx, [eax + 0x18]
cmp ecx, edx
mov byte [esp + 0xe], 0
push edi
mov ebx, dword [esi + 4]
cmovne ebp, ecx
xor eax, eax
mov dword [esp + 0x20], ebp
test ebx, ebx
cmovne eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x30]
cmp dword [eax + 0x30], 2
jne 0x4b1798
xor edi, edi
cmp ecx, edx
cmovne edi, ecx
xor eax, eax
test ebx, ebx
push eax
cmove esi, eax
push dword [edi + 0x30]
call fcn.00462410
add esp, 8
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jne 0x4b149a
push eax
jmp 0x4b1481
cmp ecx, ebp
je 0x4b1798
mov eax, dword [ecx]
cmp dword [eax], 0
jne 0x4b14b5
lea eax, [ecx + 0x18]
cmp dword [ecx + 0x10], eax
je 0x4b1798
mov ebp, dword [ebp + 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x4b1781
test ebp, ebp
je 0x4b1781
xor ecx, ecx
cmp dword [eax], ecx
cmovne ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [ebp + 0xc], 0
jne 0x4b1753
mov eax, dword [ebp + 0x18]
cmp eax, 0x159
je 0x4b1753
push eax
call fcn.00409d10
add esp, 4
test al, al
jne 0x4b1753
push ebp
call fcn.004071a0
add esp, 4
test al, al
jne 0x4b1753
imul ecx, dword [ebp + 0x18], 0x64
mov dl, byte [ecx + 0x51451c]
cmp dl, 1
jne 0x4b1531
mov eax, dword [ecx + 0x514520]
cmp eax, dword [ecx + 0x514534]
jne 0x4b1753
cmp byte [ebp + 0x35], 0x40
jne 0x4b1542
test byte [esp + 0x78], 2
jne 0x4b1753
xor bl, bl
mov byte [esp + 0x13], 1
xor esi, esi
mov byte [esp + 0x11], 1
mov bh, 1
test dl, dl
je 0x4b1753
lea edi, [ebp + 0x44]
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [eax]
cmp dword [ecx + 0xc], 8
lea eax, [ecx + 8]
jne 0x4b15ce
mov edx, dword [esp + 0x20]
cmp dword [eax], edx
jne 0x4b15ce
mov eax, dword [ecx + 0x18]
mov dword [esp + esi*4 + 0x28], 0
mov dword [esp + esi*4 + 0x48], 0
cmp dword [eax], 0
je 0x4b15ea
test eax, eax
je 0x4b15ea
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x18]
cmp dword [eax + 8], ecx
jne 0x4b15bb
mov ecx, dword [edx]
mov ecx, dword [ecx + 0xc]
cmp ecx, 7
je 0x4b15b1
mov byte [esp + 0x11], 0
cmp ecx, 5
je 0x4b15b3
xor bh, bh
mov dword [esp + esi*4 + 0x28], edx
mov bl, 1
jmp 0x4b15bf
mov dword [esp + esi*4 + 0x48], edx
mov ecx, dword [eax]
mov eax, ecx
cmp dword [ecx], 0
je 0x4b15ea
test eax, eax
jne 0x4b1591
jmp 0x4b15ea
push dword [esp + 0x14]
push dword [eax]
call fcn.00413ac0
add esp, 8
test al, al
je 0x4b1607
mov eax, dword [edi]
mov dword [esp + esi*4 + 0x28], eax
mov dword [esp + esi*4 + 0x48], eax
imul eax, dword [ebp + 0x18], 0x64
inc esi
add edi, 0x20
movzx eax, byte [eax + 0x51451c]
cmp esi, eax
jb 0x4b1560
mov al, byte [esp + 0x13]
jmp 0x4b1609
xor al, al
test bl, bl
je 0x4b1753
test al, al
je 0x4b1753
cmp byte [esp + 0x11], 0
jne 0x4b1665
test bh, bh
jne 0x4b1665
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp + 0x28]
test ecx, ecx
je 0x4b1753
cmp ecx, eax
je 0x4b1753
cmp dword [ecx + 4], eax
jne 0x4b1753
mov eax, dword [ebp + 0x2c]
test byte [eax - 4], 1
jne 0x4b1753
push 1
push dword [eax - 4]
call fcn.004b0070
add esp, 8
test al, al
je 0x4b1753
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
lea eax, [esp + 0x28]
push eax
push ebp
push edi
mov dword [edi], 1
call fcn.004afef0
mov edx, dword [esp + 0x28]
mov ebx, eax
add esp, 0xc
lea eax, [edx + 0x18]
cmp dword [edx + 0x10], eax
je 0x4b16a7
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x4b16a7
cmp dword [ecx + 0xc], 6
jne 0x4b16a7
mov eax, 2
jmp 0x4b16ae
mov eax, 1
mov ecx, edx
mov dword [edi], eax
lea eax, [esp + 0x48]
push eax
push ebp
push edi
mov dword [edi + 4], ecx
call fcn.004afef0
push dword [edi + 0x10]
mov esi, eax
call fcn.00409e10
push ebx
push dword [esp + 0x28]
mov edi, eax
push edi
call fcn.00409db0
push esi
push dword [esp + 0x3c]
push edi
call fcn.00409db0
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x10]
push eax
lea eax, [edi + 0x28]
push eax
push edi
call fcn.00407ec0
mov edx, dword [esp + 0x58]
add esp, 0x38
mov ecx, dword [edx + 0x10]
cmp dword [ecx], 0
je 0x4b171b
test ecx, ecx
je 0x4b171b
cmp dword [ecx + 0xc], 8
jne 0x4b176c
mov eax, dword [ecx]
mov ecx, eax
cmp dword [eax], 0
je 0x4b171b
test ecx, ecx
jne 0x4b1708
mov eax, 1
mov ecx, edx
mov edx, dword [esp + 0x24]
push edi
push edx
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.0041dbe0
lea eax, [edi + 0x28]
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.00407f10
push ebp
call fcn.00409630
push ebp
call fcn.00409160
add esp, 0x18
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x18]
mov ebp, eax
test eax, eax
je 0x4b1773
mov eax, dword [eax]
test eax, eax
je 0x4b1773
xor ecx, ecx
cmp dword [eax], ecx
cmovne ecx, eax
jmp 0x4b1775
mov eax, 2
jmp 0x4b1722
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jne 0x4b14d6
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004eec95
add esp, 0x5c
ret
mov ecx, dword [esp + 0x68]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eec95
add esp, 0x5c
ret