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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov ebx, ecx
mov eax, dword [0x1038100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp + 8]
call edi
cmp eax, 1
je 0x1013dd3e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x48], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x30], ecx
cmp byte [eax + 0xc], 1
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
sete byte [ebp - 0x38]
mov esi, dword [eax + 8]
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebx + 0x18c]
mov edi, dword [ecx + 4]
cmp byte [edi + 0xd], 0
je 0x1013df69
lea eax, [ebp - 0x18]
mov dword [eax], 0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx]
mov edi, dword [eax + 0x4c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call edi
cmp eax, 1
jne 0x1013dd57
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1021e470
mov eax, edi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov eax, 0x1e60
mov ecx, dword [ebp - 0x3c]
add eax, dword [ecx + 0x34]
push eax
push dword [ebp - 0x48]
call fcn.10151c00
add esp, 8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24]
mov dword [eax], 0x102e7fdc
mov edi, dword [sym.imp.mozglue.dll_moz_xmalloc]
push 8
call edi
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x24]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0x10
call edi
add esp, 4
xor ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 0x102eac0c
mov dword [eax + 0xc], ebx
lea ecx, [ebp - 0x24]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx], 0x102e7fdc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov edi, dword [ebp - 0x3c]
mov eax, dword [edi]
mov ebx, dword [eax + 0x78]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
xor edi, edi
inc edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push esi
push dword [ebp + 8]
call ebx
xor ebx, ebx
cmp eax, edi
je 0x1013e161
add dword [ebp - 0x3c], 0x18c
mov eax, 8
push eax
mov edi, dword [sym.imp.mozglue.dll_moz_xmalloc]
call edi
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, 0x10
push eax
mov ebx, ecx
call ecx
add esp, 4
xor ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x102eac0c
mov dword [eax], ecx
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
push 0x30
call ebx
mov edi, ebx
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov word [ebx + 0xc], 0
mov dword [ebx + 0x10], esi
mov al, byte [ebp - 0x38]
mov byte [ebx + 0x14], al
movzx eax, word [ebp - 0x13]
mov word [ebx + 0x15], ax
mov al, byte [ebp - 0x11]
mov byte [ebx + 0x17], al
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0x102e7fdc
mov eax, 8
push eax
call edi
mov ecx, edi
add esp, 4
mov edi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov eax, 0x10
push eax
call ecx
add esp, 4
xor ecx, ecx
inc ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, 0x102eac0c
mov dword [eax], ecx
mov dword [ebp - 0x44], eax
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x24], 0x102e7fdc
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
mov eax, ecx
jne 0x1013df4d
jmp 0x1013df3c
cmp edx, esi
jge 0x1013df0e
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1013df3c
jmp 0x1013e052
mov dl, byte [ebp - 0x38]
cmp byte [eax + 0x14], dl
ja 0x1013df45
jb 0x1013df00
mov edx, dword [eax + 0x18]
cmp dword [ebp - 0x34], edx
jl 0x1013df45
cmp edx, dword [ebp - 0x34]
jl 0x1013df00
mov edx, dword [eax + 0x1c]
cmp dword [ebp - 0x30], edx
jb 0x1013df45
cmp edx, dword [ebp - 0x30]
jb 0x1013df00
mov edx, dword [ebp - 0x48]
cmp edx, dword [eax + 0x20]
jae 0x1013df00
jmp 0x1013df45
mov eax, edx
mov edx, dword [edx + 0x10]
cmp esi, edx
jge 0x1013defc
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
je 0x1013df3c
cmp eax, dword [ecx]
je 0x1013e01b
cmp byte [eax + 0xd], 0
je 0x1013e027
mov edi, dword [eax + 8]
mov cl, 1
jmp 0x1013e056
mov eax, ecx
mov bl, byte [ebp - 0x38]
mov edx, eax
mov eax, edi
mov edi, dword [edi + 0x10]
cmp edi, esi
jl 0x1013dfa6
cmp esi, edi
jl 0x1013dfaf
cmp byte [eax + 0x14], bl
jb 0x1013dfa6
ja 0x1013dfaf
mov edi, dword [eax + 0x18]
cmp edi, dword [ebp - 0x34]
jl 0x1013dfa6
cmp dword [ebp - 0x34], edi
jl 0x1013dfaf
mov edi, dword [eax + 0x1c]
cmp edi, dword [ebp - 0x30]
jb 0x1013dfa6
cmp dword [ebp - 0x30], edi
jb 0x1013dfaf
mov edi, dword [ebp - 0x48]
cmp dword [eax + 0x20], edi
jae 0x1013dfaf
mov edi, eax
add edi, 8
mov eax, edx
jmp 0x1013dfb1
mov edi, eax
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x1013df6e
cmp eax, ecx
mov edx, dword [ebp + 0x10]
je 0x1013dd14
mov ecx, dword [eax + 0x10]
cmp esi, ecx
jl 0x1013dd14
cmp ecx, esi
jl 0x1013e00f
mov cl, byte [ebp - 0x38]
cmp byte [eax + 0x14], cl
ja 0x1013dd14
jb 0x1013e00f
mov ecx, dword [eax + 0x18]
cmp dword [ebp - 0x34], ecx
jl 0x1013dd14
cmp ecx, dword [ebp - 0x34]
jl 0x1013e00f
mov ecx, dword [eax + 0x1c]
cmp dword [ebp - 0x30], ecx
jb 0x1013dd14
cmp ecx, dword [ebp - 0x30]
jb 0x1013e00f
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 0x20]
jb 0x1013dd14
add eax, 0x24
mov dword [edx], eax
xor edi, edi
jmp 0x1013dd41
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
push ebx
push eax
push 1
jmp 0x1013e069
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x1013e042
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
je 0x1013e238
mov cl, 1
mov edi, edx
jmp 0x1013e056
mov edi, ecx
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x1013e042
jmp 0x1013df62
xor ecx, ecx
mov edi, eax
mov edx, dword [edi + 0x10]
cmp edx, esi
jge 0x1013e078
movzx esi, cl
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
push ebx
push eax
push esi
call fcn.10149d60
add esp, 0xc
mov al, 1
jmp 0x1013e10f
cmp esi, edx
jge 0x1013e1eb
mov dword [ebx + 0x24], 0x102e7fdc
xor eax, eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x1013e100
lock dec dword [eax + 4]
jne 0x1013e0c8
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x40]
call esi
mov ecx, dword [ebp - 0x40]
lock dec dword [ecx + 8]
jne 0x1013e0c8
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x40]
call esi
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x1013e100
lock dec dword [esi + 4]
jne 0x1013e100
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
call dword [section..00cfg]
mov ecx, esi
call dword [ebp - 0x38]
lock dec dword [esi + 8]
jne 0x1013e100
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
call dword [section..00cfg]
mov ecx, esi
call dword [ebp - 0x38]
push ebx
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [ebp - 0x2c], edi
xor eax, eax
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x44]
lock dec dword [eax + 4]
mov ecx, dword [ebp + 0x10]
mov ebx, 0
jne 0x1013e157
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x44]
call esi
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x44]
lock dec dword [edi + 8]
jne 0x1013e157
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
add eax, 0x24
mov dword [ecx], eax
xor edi, edi
mov dword [ebp - 0x24], 0x102e7fdc
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
test esi, esi
je 0x1013dd41
lock dec dword [esi + 4]
jne 0x1013e1a6
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
lock dec dword [esi + 8]
jne 0x1013e1a6
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1013dd41
lock dec dword [esi + 4]
jne 0x1013dd41
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
lock dec dword [esi + 8]
jne 0x1013dd41
mov eax, dword [esi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
jmp 0x1013dd41
mov dl, byte [ebp - 0x38]
cmp byte [edi + 0x14], dl
jb 0x1013e05d
ja 0x1013e080
mov edx, dword [edi + 0x18]
cmp edx, dword [ebp - 0x34]
jl 0x1013e05d
cmp dword [ebp - 0x34], edx
jl 0x1013e080
mov edx, dword [edi + 0x1c]
cmp edx, dword [ebp - 0x30]
jb 0x1013e05d
cmp dword [ebp - 0x30], edx
jb 0x1013e080
mov edx, dword [ebp - 0x48]
cmp dword [edi + 0x20], edx
jb 0x1013e05d
jmp 0x1013e080
mov edi, eax
mov ecx, edx
cmp edi, dword [edx]
jne 0x1013e24d
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
mov edi, ecx
je 0x1013e23a
jmp 0x1013e24f
mov edx, ecx
mov cl, 1
cmp byte [edi + 0xd], 0
jne 0x1013e056
jmp 0x1013e03c