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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5198ca
mov esi, dword [0x6d19b8]
mov ecx, esi
push eax
call dword [0x659730]
call esi
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x5198e5
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x5198e5
push eax
call fcn.005210a0
add esp, 4
mov ecx, dword [ebx]
test ecx, ecx
je 0x519908
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x519908
mov esi, dword [0x6d19b8]
mov ecx, esi
push eax
call dword [0x659730]
call esi
mov ecx, dword [ebx]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x51991d
cmp esi, 5
je 0x51991d
cmp esi, 6
jne 0x519e6e
mov edx, dword [ebx + 0x18]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x34], 0
mov esi, dword [edx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x51994b
cmp byte [esi + 0x14], 2
jne 0x51994b
mov esi, 5
jmp 0x519973
xor esi, esi
test edx, edx
je 0x519957
cmp byte [edx + 8], 0
jne 0x519973
push 0
push 0
push edx
call fcn.00549660
mov edx, dword [ebx + 0x18]
add esp, 0xc
mov edi, dword [ebx + 4]
mov esi, eax
mov dword [ebp - 0x34], 1
cmp dword [ebx + 0xc], 0
jne 0x519997
test esi, esi
jne 0x5199bf
mov eax, dword [edx + 4]
push esi
push esi
push dword [eax + 0x24]
push edi
call fcn.0054c4f0
add esp, 0x10
cmp eax, 7
jne 0x51999b
mov esi, eax
jmp 0x5199bf
test esi, esi
jne 0x5199bf
cmp dword [ebx + 0xc], 0
jne 0x5199bf
lea eax, [ebx + 8]
push eax
push 2
push dword [ebx + 4]
call fcn.00549660
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x5199bf
mov dword [ebx + 0xc], 1
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edi, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edi
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov al, byte [eax + 5]
mov byte [ebp - 1], al
test esi, esi
jne 0x5199f1
cmp al, 5
jne 0x5199f1
cmp edi, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x30]
xor eax, eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x519a07
cmp eax, ecx
jge 0x519a81
mov edi, dword [ebx + 0x10]
cmp edi, edx
ja 0x519a81
test esi, esi
jne 0x519abc
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x6d1a80]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x519a72
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push edi
push eax
mov esi, dword [eax + 0xcc]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x519a72
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
push edi
push ebx
call fcn.0051dc20
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x519a72
push eax
call fcn.00565290
add esp, 4
mov eax, dword [ebp - 0x18]
inc dword [ebx + 0x10]
inc eax
mov edx, dword [ebp - 0xc]
jmp 0x5199f9
test esi, esi
jne 0x519abc
mov eax, edx
mov dword [ebx + 0x24], edx
sub eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x10], edx
ja 0x519ac5
cmp dword [ebx + 0x28], esi
jne 0x519e3e
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebx + 0x2c], eax
mov dword [ecx + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x519e3e
cmp esi, 0x65
jne 0x519e3e
test edx, edx
jne 0x519b22
mov edi, dword [ebx + 4]
cmp byte [edi + 9], dl
je 0x519ae2
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x519ae2
push edi
call fcn.005210a0
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x30], 0
push dword [edi + 4]
call fcn.00538530
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x519b0e
add dword [edi + 0xc], 0xffffffff
jne 0x519b0e
push edi
call fcn.0058ece0
add esp, 4
mov dword [ebp - 0xc], 1
test esi, esi
je 0x519b22
cmp esi, 0x65
jne 0x519e3e
mov eax, dword [ebx + 8]
inc eax
push eax
push 1
push dword [ebx + 4]
call fcn.0054ccd0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x519e3e
mov eax, dword [ebx]
test eax, eax
je 0x519b4d
push eax
call fcn.0056aab0
add esp, 4
cmp byte [ebp - 1], 5
jne 0x519bde
mov esi, dword [ebx + 4]
mov eax, 0xffdf
push 0
push 0
push esi
mov edi, dword [esi + 4]
and word [edi + 0x18], ax
call fcn.00549660
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x519bcb
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x30], eax
cmp byte [eax + 0x12], 2
jne 0x519b8e
cmp byte [eax + 0x13], 2
je 0x519bcb
push 0
push 2
push esi
call fcn.00549660
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x519bcb
mov eax, dword [edi + 0xc]
push dword [eax + 0x48]
call fcn.005652f0
mov ecx, eax
add esp, 4
mov esi, ecx
test ecx, ecx
jne 0x519bcb
mov eax, dword [ebp - 0x30]
mov word [eax + 0x12], 0x202
mov eax, 0xffdf
and word [edi + 0x18], ax
jmp 0x519bde
mov eax, 0xffdf
mov esi, ecx
and word [edi + 0x18], ax
test ecx, ecx
jne 0x519e3e
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 8]
cmp edi, ecx
jge 0x519f83
mov eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [ebp - 0xc]
dec eax
add eax, ecx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 0xc]
imul dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
xor edx, edx
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x6d1a80]
div dword [ecx + 0x24]
lea ecx, [edi - 1]
inc eax
cmp edi, eax
cmovne ecx, edi
mov dword [ebp - 0x28], ecx
mov edi, ecx
cmp edi, dword [ebp - 0x1c]
ja 0x519ce4
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x6d1a80]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x519cd9
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push edi
push eax
mov esi, dword [eax + 0xcc]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x519cd9
mov ecx, dword [ebp - 0xc]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x519ca2
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x519ca2
cmp dword [edx + 0x60], esi
je 0x519c9e
push ecx
call fcn.0058e0b0
jmp 0x519cc4
xor esi, esi
jmp 0x519ccc
mov esi, dword [edx + 0x28]
test esi, esi
jne 0x519ccc
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x519cbf
call fcn.0053a7c0
jmp 0x519cc4
call fcn.0053bac0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x519cd9
push ecx
call fcn.00565290
add esp, 4
inc edi
test esi, esi
je 0x519c37
jmp 0x519cf9
test esi, esi
jne 0x519cf9
mov ecx, dword [ebp - 0x10]
push 1
push esi
push ecx
call fcn.00563d90
add esp, 0xc
mov esi, eax
mov eax, dword [0x6d1a80]
add eax, dword [ebp - 0x20]
cdq
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
cmp ecx, edx
jg 0x519d1c
jl 0x519d25
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x519d1f
jmp 0x519d25
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [0x6d1a80]
add eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x28], eax
mov edi, eax
mov dword [ebp - 0x1c], edx
mov ecx, edx
test esi, esi
jne 0x519e3e
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
nop dword [eax]
cmp ecx, ebx
jg 0x519ecc
jl 0x519d63
cmp edi, dword [ebp - 0x20]
jae 0x519ecc
push 0
lea esi, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push esi
push edx
push eax
push ecx
push edi
call fcn.006088b0
inc eax
push eax
mov eax, dword [ebp - 0x24]
push eax
mov esi, dword [eax + 0xcc]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x519dbd
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
push edi
push dword [ebp - 8]
mov esi, dword [ecx]
push dword [eax + 4]
push ecx
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x659730]
call esi
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x519e20
test byte [ecx + 0x1c], 0x20
je 0x519e17
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push edi
mov edi, dword [ebx + 0x48]
mov ecx, edi
call dword [0x659730]
call edi
mov edi, dword [ebp - 0x28]
add esp, 0x10
mov ebx, dword [ebp - 0x18]
jmp 0x519e20
push ecx
call fcn.005660b0
add esp, 4
mov eax, dword [ebp - 0x38]
add edi, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
adc ecx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x519d50
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x34], 0
je 0x519e5b
push 0
push dword [ebx + 0x18]
call fcn.00549c50
push 0
push dword [ebx + 0x18]
call fcn.00549cf0
add esp, 0x10
mov ecx, dword [ebx]
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebx + 0x1c], esi
test ecx, ecx
je 0x519e8d
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x519e8d
mov edi, dword [0x6d19c0]
mov ecx, edi
push eax
call dword [0x659730]
call edi
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x519ea5
add dword [eax + 0xc], 0xffffffff
jne 0x519ea5
push eax
call fcn.0058ece0
add esp, 4
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x519ec3
mov edi, dword [0x6d19c0]
push ecx
mov ecx, edi
call dword [0x659730]
call edi
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push ecx
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x659730]
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x519e3b
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x3c], ecx
jl 0x519f19
mov eax, dword [ebp - 0x14]
jg 0x519f02
cmp dword [ebp - 0x40], eax
jbe 0x519f19
mov esi, dword [ebx]
push ecx
push eax
push ebx
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x659730]
call esi
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x519e3b
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x519f4e
mov esi, dword [esi + 0x28]
mov ecx, esi
push 0
push 0x15
push eax
call dword [0x659730]
call esi
xor esi, esi
add esp, 0xc
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x519f7e
xor esi, esi
cmp byte [ebx + 7], 0
jne 0x519f7e
movzx ecx, byte [ebx + 0xa]
mov edx, dword [ebx + 0x3c]
test ecx, ecx
je 0x519f7c
mov eax, dword [edx]
push ecx
push edx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x659730]
call esi
mov ebx, dword [ebp + 8]
add esp, 8
mov esi, eax
jmp 0x519fa1
xor esi, esi
mov ebx, dword [ebp + 8]
jmp 0x519fa1
mov eax, edi
cdq
idiv ecx
mov ecx, dword [ebp - 0x10]
imul eax, dword [ebp - 0xc]
push 0
push 0
push ecx
mov dword [ecx + 0x18], eax
call fcn.00563d90
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x519e3e
push esi
push dword [ebx + 4]
call fcn.00549cf0
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
jmp 0x519e3e