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

Disassembly:
push 0xffffffffffffffff
push 0x130fc140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
push eax
call fcn.13007280
add esp, 4
lea ecx, [esp + 0x44]
mov esi, eax
push ecx
mov ecx, esi
call fcn.13006320
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ebp, dword [esp + 0x70]
add ebp, 8
push ebp
movzx ecx, ax
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x20], 0x30
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebp
call fcn.1301e522
mov esi, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
add esp, 0x14
cmp byte [esi + 8], bl
mov dword [esp + 0x10], edx
jne 0x130185bc
mov ecx, esi
call fcn.13017e30
push edi
mov edi, dword [esp + 0x80]
cmp byte [edi + 8], bl
jne 0x130185d0
mov ecx, edi
call fcn.13017e30
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x130185e4
cmp dword [edi + 4], ebx
je 0x1301869f
cmp eax, ebx
je 0x130185ed
cmp dword [edi + 4], ebx
jne 0x1301869f
cmp byte [esi + 8], bl
jne 0x130185f9
mov ecx, esi
call fcn.13017e30
movzx edi, word [esi + 0xa]
push ebp
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x88], 0x2b
mov dword [esp + 0x90], ebx
mov dword [esp + 0x2c], ebx
call fcn.1301e522
add esp, 0x14
cmp di, word [esp + 0x7c]
jne 0x13018640
mov eax, dword [esp + 0x78]
mov byte [eax], 0x2b
jmp 0x13018691
cmp byte [esi + 8], bl
jne 0x1301864c
mov ecx, esi
call fcn.13017e30
movzx edi, word [esi + 0xa]
push ebp
lea eax, [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x88], 0x2d
mov dword [esp + 0x90], ebx
mov dword [esp + 0x2c], ebx
call fcn.1301e522
add esp, 0x14
cmp di, word [esp + 0x7c]
jne 0x1301869f
mov eax, dword [esp + 0x78]
mov byte [eax], 0x2d
add eax, 1
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.13017dd0
mov eax, dword [esp + 0x84]
and eax, 0xe00
cmp eax, 0x400
jne 0x130186bd
mov edi, 8
mov dword [esp + 0x18], edi
jmp 0x130186dc
cmp eax, 0x800
jne 0x130186cf
mov edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x130186dc
neg eax
sbb eax, eax
and eax, 0xa
mov edi, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
push eax
push esi
mov byte [esp + 0x7c], bl
mov byte [esp + 0x84], bl
call fcn.13017f90
add esp, 8
test al, al
je 0x130187d9
cmp byte [esi + 8], bl
jne 0x1301870c
mov ecx, esi
call fcn.13017e30
movzx eax, word [esi + 0xa]
cmp ax, word [esp + 0x1c]
jne 0x130187d9
mov ecx, esi
mov byte [esp + 0x74], 1
call fcn.13017dd0
mov ecx, dword [esp + 0x80]
push ecx
push esi
call fcn.13017f90
add esp, 8
test al, al
je 0x130187c7
cmp byte [esi + 8], bl
jne 0x1301874c
mov ecx, esi
call fcn.13017e30
movzx edi, word [esi + 0xa]
push ebp
lea edx, [esp + 0x28]
push edx
push 1
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x98], 0x78
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call fcn.1301e522
add esp, 0x14
cmp di, word [esp + 0x1c]
je 0x130187a5
cmp byte [esi + 8], bl
jne 0x13018790
mov ecx, esi
call fcn.13017e30
movzx edi, word [esi + 0xa]
push ebp
push ebx
push 0x58
call fcn.13005c50
add esp, 0xc
cmp di, ax
jne 0x130187c7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x130187b2
cmp eax, 0x10
jne 0x130187c7
mov ecx, esi
mov dword [esp + 0x18], 0x10
mov byte [esp + 0x74], bl
call fcn.13017dd0
jmp 0x130187e2
mov edi, dword [esp + 0x18]
cmp edi, ebx
jne 0x130187dd
mov dword [esp + 0x18], 8
jmp 0x130187e2
cmp edi, ebx
je 0x130187f5
cmp edi, 0xa
je 0x130187f5
mov ebp, dword [esp + 0x18]
sub ebp, 8
neg ebp
sbb ebp, ebp
and ebp, 0xe
add ebp, 8
jmp 0x130187fa
mov ebp, 0xa
mov dl, byte [esp + 0x74]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x44], 0xf
mov byte [esp + 0x30], dl
mov dword [esp + 0x40], 1
mov byte [esp + 0x31], bl
mov byte [esp + 0x6c], 1
xor edi, edi
cmp byte [esi + 8], bl
jne 0x13018866
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x1301885f
mov eax, dword [ecx + 0x20]
cmp dword [eax], ebx
je 0x13018846
mov edx, dword [ecx + 0x30]
cmp dword [edx], ebx
jle 0x13018846
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x13018850
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x1301885f
mov word [esi + 0xa], ax
jmp 0x13018862
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
mov edx, dword [esp + 0x80]
cmp byte [edx + 8], bl
jne 0x130188b5
mov ecx, dword [edx + 4]
cmp ecx, ebx
je 0x130188ae
mov eax, dword [ecx + 0x20]
cmp dword [eax], ebx
je 0x1301888e
mov edx, dword [ecx + 0x30]
cmp dword [edx], ebx
jle 0x1301888e
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x13018898
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
movzx eax, ax
mov edx, dword [esp + 0x80]
movzx eax, ax
cmp ax, 0xffff
je 0x130188ae
mov word [edx + 0xa], ax
jmp 0x130188b1
mov dword [edx + 4], ebx
mov byte [edx + 8], 1
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x130188f8
cmp dword [edx + 4], ebx
jne 0x130188fd
cmp edi, ebx
je 0x13018a99
cmp edi, dword [esp + 0x40]
jbe 0x130188d4
call fcn.13020171
mov eax, dword [esp + 0x30]
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
jae 0x130188e7
lea eax, [esp + 0x30]
cmp byte [eax + edi], bl
jle 0x13018a93
add edi, 1
jmp 0x13018a9e
cmp dword [edx + 4], ebx
jne 0x130188c1
cmp byte [esi + 8], bl
jne 0x1301893b
cmp ecx, ebx
je 0x13018934
mov eax, dword [ecx + 0x20]
cmp dword [eax], ebx
je 0x1301891b
mov edx, dword [ecx + 0x30]
cmp dword [edx], ebx
jle 0x1301891b
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x13018925
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x13018934
mov word [esi + 0xa], ax
jmp 0x13018937
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
mov ecx, dword [esp + 0x28]
movzx eax, word [esi + 0xa]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x94], bl
mov dword [esp + 0x34], ebx
call fcn.1301dcbd
mov al, byte [esp + 0x94]
mov ecx, dword [esp + 0x24]
movsx edx, al
push ebp
push edx
push 0x130feb34
mov byte [ecx], al
call fcn.13020310
add esp, 0x1c
test eax, eax
je 0x130189f0
cmp byte [esp + 0x7c], bl
jne 0x13018994
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x30
je 0x130189ab
mov eax, dword [esp + 0x78]
add eax, 0x1f
cmp dword [esp + 0x14], eax
jae 0x130189ab
add dword [esp + 0x14], 1
mov byte [esp + 0x7c], 1
cmp edi, dword [esp + 0x40]
mov byte [esp + 0x74], 1
jbe 0x130189bb
call fcn.13020171
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x130189ca
lea eax, [esp + 0x30]
cmp byte [eax + edi], 0x7f
je 0x13018a48
cmp edi, dword [esp + 0x40]
jbe 0x130189db
call fcn.13020171
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x130189ea
lea eax, [esp + 0x30]
add byte [eax + edi], 1
jmp 0x13018a48
cmp edi, dword [esp + 0x40]
jbe 0x130189fb
call fcn.13020171
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x13018a0a
lea eax, [esp + 0x30]
cmp byte [eax + edi], bl
je 0x130188c1
cmp word [esp + 0x20], bx
je 0x130188c1
cmp byte [esi + 8], bl
jne 0x13018a2a
mov ecx, esi
call fcn.13017e30
movzx eax, word [esi + 0xa]
cmp ax, word [esp + 0x20]
jne 0x130188c1
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.13006270
add edi, 1
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x13018a87
mov edx, dword [ecx + 0x20]
cmp dword [edx], ebx
je 0x13018a6f
mov eax, dword [ecx + 0x30]
cmp dword [eax], ebx
jle 0x13018a6f
add dword [eax], 0xffffffff
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 2]
mov dword [ecx], edx
movzx eax, word [eax]
jmp 0x13018a79
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
movzx eax, ax
cmp ax, 0xffff
je 0x13018a87
mov byte [esi + 8], bl
jmp 0x13018825
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
jmp 0x13018825
mov byte [esp + 0x74], bl
jmp 0x13018a9e
mov ebp, 0x10
cmp dword [esp + 0x60], ebp
mov esi, dword [esp + 0x4c]
jae 0x13018aac
lea esi, [esp + 0x4c]
cmp byte [esp + 0x74], bl
je 0x13018b2a
cmp edi, ebx
jbe 0x13018b18
cmp byte [esi], 0x7f
je 0x13018b18
sub edi, 1
je 0x13018ae5
cmp edi, dword [esp + 0x40]
jbe 0x13018ad0
call fcn.13020171
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x13018ade
lea eax, [esp + 0x30]
mov cl, byte [esi]
cmp cl, byte [eax + edi]
jne 0x13018b2a
cmp edi, ebx
jne 0x13018b0e
cmp edi, dword [esp + 0x40]
jbe 0x13018af9
call fcn.13020171
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x13018b07
lea eax, [esp + 0x30]
mov dl, byte [esi]
cmp dl, byte [eax + edi]
jl 0x13018b2a
cmp byte [esi + 1], bl
jle 0x13018ab2
add esi, 1
jmp 0x13018ab2
cmp byte [esp + 0x7c], bl
mov eax, dword [esp + 0x14]
jne 0x13018b2e
mov byte [eax], 0x30
add eax, 1
jmp 0x13018b2e
mov eax, dword [esp + 0x78]
mov byte [eax], bl
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x44], ebp
pop edi
jb 0x13018b4d
mov eax, dword [esp + 0x2c]
push eax
call fcn.1301ff6c
add esp, 4
mov ebp, 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x5c], ebp
jb 0x13018b78
mov ecx, dword [esp + 0x48]
push ecx
call fcn.1301ff6c
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
pop esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
pop ebp
mov dword [esp + 0x54], 0xf
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret