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

Disassembly:
mov eax, 0x23d8
call fcn.0052c8c0
mov eax, dword [0x5ed284]
xor eax, esp
mov dword [esp + 0x23d4], eax
mov eax, dword [esp + 0x23f0]
push ebx
mov ebx, dword [esp + 0x23e0]
test ebx, ebx
push esi
mov esi, dword [esp + 0x23f0]
push edi
mov edi, dword [esp + 0x23ec]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
jne 0x40c34c
mov ax, 0x10
jmp 0x40c6bd
mov ecx, dword [0xa1c128]
mov eax, dword [ebx + 0x54]
push ebp
push ecx
push eax
call fcn.0040b870
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40c36f
mov ax, 2
jmp 0x40c6bc
test edi, edi
je 0x40c37e
test esi, esi
je 0x40c37e
cmp dword [esp + 0x10], 0
jne 0x40c387
mov ax, 0x10
jmp 0x40c6bc
movzx eax, word [ebp + 0x44]
test ax, ax
je 0x40c6b8
cmp ax, 0xffff
je 0x40c6b8
xor eax, eax
push 0x3e8
push eax
lea edx, [esp + 0x478]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call sub.VCRUNTIME140.dll_memset
push 0x3e8
lea eax, [esp + 0x1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x3e8
lea ecx, [esp + 0xa4]
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
push 0x801
push eax
lea edx, [esp + 0x1c0c]
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call sub.VCRUNTIME140.dll_memset
push 0x3e8
lea eax, [esp + 0xc74]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
movsx ecx, word [ebp + 0x70]
mov edx, dword [ebp + ecx*4 + 0x48]
push edx
lea eax, [esp + 0x58]
push 0x58c3d8
push eax
call fcn.00410db0
movzx ecx, word [ebp + 0x44]
add esp, 0x48
push ecx
lea edx, [esp + 0x28]
push 0x58c3d8
push edx
call fcn.00410db0
mov esi, dword [esp + 0x2400]
push esi
lea eax, [esp + 0x1bf0]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ecx, [esp + 0x1bf8]
push ecx
push esi
push edi
call fcn.00402af0
push esi
lea edx, [esp + 0x64]
push 0x58c3d8
push edx
call fcn.00410db0
add esp, 0x30
push 0x40
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.00405cb0
movzx eax, ax
test ax, ax
jne 0x40c6bc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1be4]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 4
push 0x5b20e4
call fcn.004149c0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40c543
push esi
lea edx, [esp + 0x17fc]
push 0x3e8
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x180c]
push ecx
push str.softSecureMsgStr
push 3
push 0x5b1f90
call fcn.004149c0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40c543
push esi
lea edx, [esp + 0x8c]
push 0x3e8
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea eax, [esp + 0x98]
push eax
call fcn.00414c50
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40c553
push ebp
push 0x4a
call fcn.00406280
add esp, 8
jmp 0x40c6bc
push esi
lea ecx, [esp + 0x8c]
push 0x3e8
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x9c]
push ebp
push eax
call fcn.00413590
movzx eax, ax
add esp, 0x1c
test ax, ax
je 0x40c59c
push ebp
push eax
call fcn.00406990
add esp, 8
jmp 0x40c6bc
lea ecx, [esp + 0x470]
push ecx
call fcn.004151e0
mov esi, eax
add esp, 4
test esi, esi
je 0x40c65e
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x85c]
push eax
lea ecx, [esp + 0x1030]
push ecx
push esi
push 3
push 0x5b1f90
call fcn.00414ff0
push esi
movzx edi, ax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x1c
test di, di
jne 0x40c65e
mov edi, 0x5b2108
lea esi, [esp + 0x1028]
mov ecx, 6
xor edx, edx
mov byte [esp + 0x140f], 0
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0xc3f], 0
jne 0x40c632
lea eax, [esp + 0x858]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
movzx eax, ax
push ebp
push eax
call fcn.00406280
add esp, 0xc
jmp 0x40c6bc
lea ecx, [esp + 0xc40]
push ecx
lea edx, [esp + 0x1414]
push edx
lea eax, [esp + 0x478]
push eax
push 2
push 0x5b20e4
call fcn.00414ff0
add esp, 0x14
test ax, ax
je 0x40c66b
push ebp
push 0x42
call fcn.00406280
add esp, 8
jmp 0x40c6bc
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0xc44]
push edx
mov byte [esp + 0x17ff], 0
call fcn.00402b60
lea eax, [esp + 0x1418]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atol
mov ecx, dword [esp + 0x1c]
lea esi, [ebp + 0x88]
push esi
mov dword [ecx], eax
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add dword [esi], 0x78
push ebp
push 0
adc dword [esi + 4], 0
call fcn.00406280
add esp, 0x18
jmp 0x40c6bc
mov ax, 0x47
pop ebp
mov ecx, dword [esp + 0x23e0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052bfb9
add esp, 0x23d8
ret 0x18