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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
mov edi, dword [esp + 0x58]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edi, [edi + edi*4]
mov dword [esp + 0x34], eax
mov ebx, dword [eax]
mov eax, dword [ebp + 0x20]
shl edi, 3
mov dword [esp + 0x38], edi
add edi, eax
push 0x170
push ebx
mov eax, dword [edi]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
call fcn.100fc640
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
mov dword [edi + 0xc], esi
je 0x1013cca4
mov al, byte [edi + 0x12]
or al, 0x10
mov byte [edi + 0x12], al
mov dx, word [ebp + 0x16]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
push edx
push eax
push ecx
push esi
call fcn.1013b9d0
mov edx, dword [esp + 0x38]
push 0x44
push edx
push esi
call fcn.1013ba10
mov eax, dword [esp + 0x6c]
push esi
push eax
call fcn.1013bba0
mov al, byte [ebx + 0x36]
add esp, 0x24
test al, al
jne 0x1013cca4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
or eax, 0xffffffff
dec ebx
not ecx
not edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ebx
js 0x1013ca9a
jmp 0x1013c8e1
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, eax
or ecx, edx
je 0x1013ca92
mov al, byte [edi + 0x10]
test al, al
jne 0x1013c9ea
mov edx, dword [esp + 0x18]
xor eax, eax
push 0x168
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.100f7ac0
mov esi, eax
add esp, 8
test esi, esi
je 0x1013ca70
mov dl, byte [edi + 0x12]
mov ebp, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
or dl, 0x20
mov dword [edi + 0xc], esi
mov byte [edi + 0x12], dl
mov word [edi + 0x10], 0x200
mov ax, word [ebp + 0x16]
mov edx, dword [ebp]
push eax
push ecx
xor ebx, ebx
push edx
push esi
mov dword [esp + 0x58], ebx
call fcn.1013b9d0
mov eax, dword [edi]
push 0x45
push eax
push esi
call fcn.1013ba10
mov ecx, dword [esp + 0x6c]
push esi
push ecx
call fcn.1013bba0
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x10], ebp
add esp, 0x24
mov al, byte [edx + 0x36]
test al, al
jne 0x1013c9c9
mov eax, dword [esi + 0x18]
mov ebp, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x1013c9c9
mov eax, dword [ebp]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.1013c3b0
add esp, 4
test eax, eax
je 0x1013c9b6
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.1013bb40
or ebx, eax
mov eax, dword [esp + 0x50]
add esp, 8
or eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x18]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x1013c985
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
and ecx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x48]
and eax, ecx
mov dword [esp + 0x30], eax
jmp 0x1013ca6c
test byte [edi + 0x12], 8
jne 0x1013ca74
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.1013bb40
mov esi, eax
mov al, byte [edi + 0x12]
add esp, 8
mov ebp, edx
test al, 2
je 0x1013ca35
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 8]
push ecx
push edx
call fcn.1013bb40
add esp, 8
or esi, eax
or ebp, edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
and edx, esi
and ecx, ebp
cmp word [edi + 0x10], 2
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
je 0x1013ca58
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x1013ca68
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
and ecx, esi
and eax, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
dec ebx
add edi, 0x28
test ebx, ebx
mov dword [esp + 0x24], ebx
jge 0x1013c8dd
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
jmp 0x1013ca9a
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x168], eax
or eax, edi
mov dword [esi + 0x16c], edi
jne 0x1013cab2
xor eax, eax
jmp 0x1013cab7
mov eax, 0x100
mov edi, dword [esp + 0x1c]
or ecx, edx
mov word [edi + 0x10], ax
je 0x1013cca4
xor ebx, ebx
or edi, 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x1013cade
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
test ebx, ebx
jne 0x1013cbd2
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x20]
mov ebp, dword [eax + 0x18]
dec ebp
js 0x1013cca4
mov cl, byte [esi + 0x12]
mov eax, dword [esi + 8]
and cl, 0xbf
cmp eax, edi
mov byte [esi + 0x12], cl
je 0x1013cb27
mov edx, dword [esp + 0x14]
mov ecx, eax
push ecx
push edx
call fcn.1013bb40
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x1013cb35
dec ebp
add esi, 0x28
test ebp, ebp
jl 0x1013cca4
jmp 0x1013caf7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
test ebp, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
jl 0x1013cca4
mov ebx, 1
test ebx, ebx
je 0x1013cbb0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
cmp eax, edx
je 0x1013cb66
mov al, byte [esi + 0x12]
and al, 0xbf
jmp 0x1013cba5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xc]
cmp ecx, eax
je 0x1013cb75
xor ebx, ebx
jmp 0x1013cba8
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push edx
call fcn.101251f0
movsx edi, al
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call fcn.101251f0
add esp, 8
test edi, edi
movsx eax, al
je 0x1013cba0
cmp edi, eax
je 0x1013cba0
xor ebx, ebx
jmp 0x1013cba8
mov al, byte [esi + 0x12]
or al, 0x40
mov byte [esi + 0x12], al
dec ebp
add esi, 0x28
test ebp, ebp
jge 0x1013cb50
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x1013cad2
test ebx, ebx
je 0x1013cca4
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
xor edi, edi
xor eax, eax
dec ecx
js 0x1013cc15
lea ebx, [ecx + 1]
test byte [esi + 0x12], 0x40
je 0x1013cc0f
mov edx, dword [esi]
mov ecx, dword [esp + 0x18]
push 0
mov eax, dword [edx + 0xc]
push eax
push ecx
call fcn.101281d0
mov edx, dword [ebp]
push eax
push edi
push edx
call fcn.101228b0
mov edi, eax
mov eax, dword [esi]
add esp, 0x18
mov eax, dword [eax + 8]
add esi, 0x28
dec ebx
jne 0x1013cbe2
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call fcn.101281d0
mov ecx, dword [esp + 0x40]
push 0
push 0
push eax
push 0x48
push ecx
call fcn.10122590
mov esi, eax
add esp, 0x20
test esi, esi
je 0x1013cc90
mov edx, dword [esp + 0x28]
push edx
push esi
call fcn.1013ccb0
push 3
push esi
push ebp
mov dword [esi + 0x10], edi
call fcn.1013ba60
mov esi, eax
mov eax, dword [esp + 0x64]
push esi
push ebp
push eax
call fcn.1013bbd0
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x58]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x78]
add esp, 0x20
add ecx, eax
mov dword [eax + edx*8 + 4], esi
mov eax, ecx
pop edi
pop esi
mov byte [ecx + 0x13], 1
pop ebp
mov dword [esp + 0x10], ecx
mov word [eax + 0x10], 0x800
pop ebx
add esp, 0x3c
ret
push edi
push ebx
call fcn.1011a450
mov eax, dword [esp + 0x24]
add esp, 8
mov word [eax + 0x10], 0x800
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret