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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x48000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
test ecx, ecx
je 0x40c36e
mov edi, dword [ebp + 8]
test edi, edi
je 0x40c36e
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x40c36e
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
movups xmmword [esi + 0x80], xmm0
movups xmmword [esi + 0x70], xmm0
movups xmmword [esi + 0x60], xmm0
movups xmmword [esi + 0x50], xmm0
movups xmmword [esi + 0x40], xmm0
movups xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x10], xmm0
add edx, eax
mov dword [esi], edx
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
sub ecx, eax
jbe 0x40c2e5
mov dword [ebp - 0x4c], edx
add edi, eax
mov eax, 0x14
cmp ecx, eax
mov ebx, 0x14
mov dword [ebp - 0x44], ecx
cmovl ebx, ecx
sub eax, ebx
xor edx, edx
cmp ebx, 0x13
cmova eax, edx
lea ecx, [ebp + ebx - 0x24]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
push ebx
mov ebx, eax
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
cmp byte [ebx], 0
jne 0x40c28c
cmp dword [ebp - 0x44], 4
jb 0x40c28c
mov eax, dword [0x480c6c]
and eax, 1
je 0x40c28c
cmp byte [ebp - 0x23], 0
jne 0x40c28c
cmp byte [ebp - 0x22], 0
jne 0x40c28c
cmp byte [ebp - 0x21], 0
je 0x40c69f
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x30]
push eax
push ecx
push 0
mov edi, dword [ebp - 0x44]
push edi
push ebx
call fcn.0040b460
add esp, 0x14
cmp eax, 0xffffffff
je 0x40c303
mov ecx, edi
mov ebx, eax
sub ecx, eax
jb 0x40c303
mov edi, dword [ebp - 0x30]
cmp dword [edi + 4], 0
je 0x40c303
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [0x480c6c]
test al, 2
mov dword [ebp - 0x40], edx
jne 0x40c382
test dl, 0x10
sete cl
add cl, cl
add cl, 2
test dl, 0x20
sete dl
jmp 0x40c395
mov ecx, dword [0x4b2fbc]
test ecx, ecx
je 0x40c36e
mov esi, dword [0x4b2fc0]
mov edi, edx
call dword [section..00cfg]
push esi
push edi
push 0
jmp 0x40c369
mov dword [esi + 0x6c], 0x64696c
mov dword [esi + 0x68], 0x61766e69
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40c32d
mov edi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [eax + 0x60]
push eax
call edi
add esp, 4
mov eax, ebx
test ebx, ebx
jne 0x40c31e
xor eax, eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov byte [esi + 0x28], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov al, byte [ebp - 0x24]
mov byte [esi + 0x14], al
mov ecx, dword [0x4b2fbc]
xor ebx, ebx
test ecx, ecx
je 0x40c36e
mov esi, dword [0x4b2fc0]
call dword [section..00cfg]
push esi
push dword [ebp - 0x4c]
push 2
call ecx
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f850
mov eax, ebx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edx
and ecx, 0x10
shr ecx, 4
add cl, cl
add cl, 2
and edx, 0x20
shr edx, 5
add dl, dl
add dl, 2
mov byte [esi + 0x2a], cl
mov byte [esi + 0x29], dl
test al, 4
je 0x40c3af
cmp byte [edi + 0x2c], 0
je 0x40c3af
lea eax, [edi + 0x2c]
jmp 0x40c3b2
lea eax, [edi + 0x1c]
lea ecx, [esi + 0x68]
push 0x10
push eax
mov dword [ebp - 0x50], ecx
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp - 0x40]
movzx ecx, ax
and eax, 0xf
cmovne eax, ecx
mov dword [esi + 0x44], eax
test al, 4
mov dword [ebp - 0x3c], edi
je 0x40c404
lea edi, [esi + 0x48]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, 0x20
sub ecx, eax
push ecx
push str.lock
push edi
mov edi, dword [ebp - 0x3c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
add esp, 0xc
mov eax, dword [esi + 0x44]
test al, 2
jne 0x40c427
test al, 1
je 0x40c44d
lea edi, [esi + 0x48]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, 0x20
sub ecx, eax
push ecx
push str.repz
jmp 0x40c440
lea edi, [esi + 0x48]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, 0x20
sub ecx, eax
push ecx
push str.repnz
push edi
mov edi, dword [ebp - 0x3c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
add esp, 0xc
lea eax, [ebx + ebp]
add eax, 0xffffffdc
mov dword [ebp - 0x38], eax
mov ecx, esi
mov edx, edi
call fcn.0040c710
mov edi, dword [ebp - 0x54]
test edi, edi
mov dword [ebp - 0x58], ebx
je 0x40c470
mov ebx, dword [ebp - 0x38]
mov al, byte [ebx]
jmp 0x40c475
xor eax, eax
mov ebx, dword [ebp - 0x38]
movzx eax, al
mov dword [ebp - 0x48], eax
mov ecx, ebx
mov edx, edi
push eax
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0xc]
push dword [eax + 0x3c]
push esi
call fcn.0040ba20
add esp, 0x14
mov ebx, eax
mov ecx, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 0x38], ecx
sub edi, eax
mov edx, edi
push dword [ebp - 0x48]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x10]
push dword [eax + 0x40]
push esi
call fcn.0040ba20
add esp, 0x14
mov ecx, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 0x38], eax
sub edi, eax
mov edx, edi
push dword [ebp - 0x48]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x14]
push dword [eax + 0x44]
mov edi, eax
push esi
call fcn.0040ba20
add esp, 0x14
mov dword [ebp - 0x48], eax
mov edx, dword [edi + 0x4c]
mov ecx, esi
call fcn.0040b340
test byte [ebp - 0x40], 3
je 0x40c500
mov ecx, esi
mov edx, 0x29
call fcn.0040b340
cmp byte [esi + 0x2a], 2
mov ecx, dword [ebp - 0x44]
jne 0x40c53c
mov edi, dword [esi + 0x78]
test edi, edi
je 0x40c53c
cmp dword [edi], 1
jne 0x40c537
cmp dword [edi + 0x1c], 4
jne 0x40c537
test byte [edi + 0x18], 1
je 0x40c537
lea eax, [edi + 0x10]
mov ecx, dword [edi + 0x20]
add ecx, 8
push ecx
push eax
call fcn.0040b2a0
mov ecx, dword [ebp - 0x44]
add esp, 8
mov edi, dword [edi + 0x60]
jmp 0x40c50c
add ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0x38]
add ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
test byte [eax + 7], 0x20
je 0x40c5a5
sub ecx, ebx
lea edx, [ebx + ebp]
add edx, 0xffffffdc
lea edi, [ebp - 0x2c]
mov dword [edi], 0
push edi
lea edi, [ebp - 0x28]
push edi
push dword [eax]
push ecx
push edx
call fcn.0040b460
add esp, 0x14
cmp eax, 0xffffffff
je 0x40c626
mov edi, dword [ebp - 0x28]
cmp dword [edi + 4], 0
je 0x40c626
lea eax, [edi + 0x1c]
push 0x10
push eax
push dword [ebp - 0x50]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov ecx, esi
mov edx, edi
call fcn.0040c710
inc ebx
mov ecx, dword [ebp - 0x44]
test ebx, ebx
je 0x40c659
mov byte [esi + 0x28], bl
cmp ebx, ecx
jle 0x40c68c
mov ecx, dword [0x4b2fbc]
test ecx, ecx
je 0x40c5d9
mov edi, dword [0x4b2fc0]
call dword [section..00cfg]
push edi
push dword [ebp - 0x4c]
push 1
call ecx
add esp, 0xc
mov dword [esi + 0x6c], 0x64696c
mov dword [esi + 0x68], 0x61766e69
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40c603
mov edi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [eax + 0x60]
push eax
call edi
add esp, 4
mov eax, ebx
test ebx, ebx
jne 0x40c5f4
xor ebx, ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov byte [esi + 0x28], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov al, byte [ebp - 0x24]
mov byte [esi + 0x14], al
jmp 0x40c36e
mov dword [esi + 0x6c], 0x64696c
mov dword [esi + 0x68], 0x61766e69
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40c32d
mov edi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [eax + 0x60]
push eax
call edi
add esp, 4
mov eax, ebx
test ebx, ebx
jne 0x40c645
jmp 0x40c32d
mov dword [esi + 0x6c], 0x64696c
mov dword [esi + 0x68], 0x61766e69
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40c32d
mov edi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [eax + 0x60]
push eax
call edi
add esp, 4
mov eax, ebx
test ebx, ebx
jne 0x40c678
jmp 0x40c32d
add esi, 0x14
push ebx
lea eax, [ebp - 0x24]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x40c36b
mov dword [esi + 0x6c], 0x64696c
mov dword [esi + 0x68], 0x61766e69
xor eax, eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov byte [esi + 0x28], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x14], 0
jmp 0x40c34b