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

Disassembly:
push edi
push esi
push ebp
push ebx
push edx
push eax
mov eax, 0x20
call fcn.006021b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x3c]
mov esi, 1
mov bl, 1
call fcn.00502334
test eax, eax
je 0x5314d7
mov dword [esp + 4], esi
mov ebp, eax
mov esi, dword [ebp + 0x6e]
test bl, bl
jne 0x53131f
test esi, esi
jne 0x531310
mov edx, dword [esp + 4]
test edx, edx
jne 0x5314e8
test esi, esi
je 0x53131f
mov esi, edx
jmp 0x5314d7
mov edx, dword [esp + 4]
test edx, edx
jne 0x53131f
mov esi, edx
jmp 0x5314d7
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x78]
cmp eax, dword [ebp + 0x72]
je 0x53133f
xor edx, edx
mov dword [esp], edx
test bl, bl
je 0x5314ad
jmp 0x5314b9
movzx edx, word [ebp + 0x81]
mov dword [esp], edx
test edx, edx
je 0x5313ee
lea edi, [edx + edx]
add edi, edi
mov dword [esp + 8], edi
lea ecx, [edi + edx*8 + 0x690620]
lea edx, [esp + 0x18]
lea edi, [esp + 0x14]
push edi
push edx
push 0x2c
call fcn.0051ab44
mov edi, dword [esp + 8]
mov edx, dword [esp]
mov edx, dword [edi + edx*8 + 0x690628]
cmp byte [edx], 0x21
je 0x531504
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
movzx edi, word [esp + 0x18]
push 0
mov eax, dword [esp + 0x40]
push eax
push edi
call dword [edx + 0x40]
test eax, eax
je 0x5314fa
mov ecx, eax
call fcn.00502334
mov edi, eax
test edi, edi
je 0x5313e4
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x3c]
movzx edx, word [esp + 0x14]
push esi
push edx
push edi
mov ecx, ebp
call fcn.0053156c
test eax, eax
jne 0x5314ec
mov ecx, edi
call fcn.004f09f0
mov edi, eax
test edi, edi
jne 0x5313bc
mov esi, dword [esp + 0xc]
xor edx, edx
mov dword [esp], edx
jmp 0x53147f
lea ecx, [esp + 0x1c]
push 0
call fcn.004ff268
lea edx, [esp + 0x1c]
movsx edi, word [ebp + 0x76]
push 0
mov eax, dword [esp + 0x40]
push eax
push edi
push edx
mov ecx, dword [esp + 0x20]
call fcn.004ef304
cmp eax, 1
je 0x531558
mov ecx, dword [ebp + 0x78]
test ecx, ecx
je 0x53145e
mov edx, dword [ebp + 0x6a]
test edx, edx
je 0x53145e
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x3c]
movsx esi, word [eax + 0x13]
add esi, esi
mov edi, dword [0x65fdf8]
push eax
push edx
push dword [edi + esi*8]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
call fcn.00435550
mov dword [esp], eax
lea ecx, [esp + 0x1c]
call fcn.005003d8
jmp 0x53147f
lea ecx, [esp + 0x1c]
xor edx, edx
mov dl, byte [ebp + 0x7c]
mov dword [esp + 8], edx
push dword [ebp + 0x5e]
call fcn.0053170c
mov dword [esp], eax
lea ecx, [esp + 0x1c]
call fcn.005003d8
mov edx, dword [ebp + 0x7d]
test edx, edx
je 0x531493
xor eax, eax
mov edx, dword [esp]
test edx, edx
sete al
mov dword [esp], eax
test bl, bl
jne 0x5314b9
mov edx, dword [esp]
test edx, edx
je 0x5314ad
test esi, esi
jne 0x5314c2
mov edx, 1
mov dword [esp + 4], edx
jmp 0x5314c2
test esi, esi
je 0x5314c2
xor edx, edx
mov dword [esp + 4], edx
jmp 0x5314c2
mov edx, dword [esp]
mov dword [esp + 4], edx
xor bl, bl
mov ecx, ebp
call fcn.004f09f0
mov ebp, eax
test ebp, ebp
jne 0x5312ee
mov esi, dword [esp + 4]
xor eax, eax
test esi, esi
sete al
add esp, 0x28
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov esi, edx
jmp 0x5314d7
mov esi, dword [esp + 0xc]
mov edx, 1
mov dword [esp], edx
jmp 0x53147f
xor edx, edx
mov dword [esp], edx
jmp 0x53147f
inc edx
push edx
mov ecx, dword [0x65f510]
call fcn.004f3a84
mov word [esp + 0x18], ax
mov edi, dword [esp + 0x3c]
push edi
push eax
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0053156c
test eax, eax
je 0x531539
mov edx, 1
mov dword [esp], edx
jmp 0x53147f
movzx edi, word [esp + 0x14]
mov edx, dword [esp + 0x3c]
push edx
push edi
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0053156c
mov dword [esp], eax
jmp 0x53147f
lea ecx, [esp + 0x1c]
call fcn.005003d8
xor edx, edx
mov dword [esp], edx
jmp 0x53147f