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

Disassembly:
push 0xffffffffffffffff
push 0x42b3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x437368]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437368]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov ebp, dword [esp + 0xa8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jle 0x40ca76
mov dword [esp + 0x18], eax
jmp 0x40c847
mov edx, dword [esp + 0x20]
xor edi, edi
mov eax, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], edi
mov word [esp + 0x60], di
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c860
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x64]
call fcn.00401560
push 1
push 0x42f384
mov ecx, esi
mov dword [esp + 0xa8], edi
call fcn.00409960
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c894
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x64]
call fcn.00409960
mov eax, dword [esp + 0x1c]
add eax, 0x20
push eax
mov ebx, 0x42f384
lea esi, [esp + 0x28]
call fcn.004098b0
add esp, 4
push eax
mov ebx, ebp
lea esi, [esp + 0x44]
mov byte [esp + 0xa4], 1
call fcn.004098b0
add esp, 4
mov ebx, 8
mov byte [esp + 0xa0], 3
cmp dword [esp + 0x3c], ebx
jb 0x40c8fe
mov edx, dword [esp + 0x28]
push edx
call fcn.00414041
add esp, 4
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], 7
jae 0x40c91d
lea edi, [esp + 0x44]
cmp dword [esp + 0x74], ebx
mov esi, dword [esp + 0x60]
jae 0x40c92b
lea esi, [esp + 0x60]
call fcn.0040dd30
xor edi, edi
cmp eax, edi
jne 0x40c985
cmp byte [ebp + 0xb3], 1
mov byte [ebp + 0xb6], 1
jne 0x40c98c
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x40c954
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x40c98c
push 0x42fb74
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x40c97a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c98c
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c98c
mov byte [ebp + 0xb6], 2
lea eax, [esp + 0x78]
push eax
mov esi, ebp
call fcn.0040c510
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov byte [esp + 0xa0], 4
call fcn.0040c7b0
cmp dword [eax + 0x18], ebx
jb 0x40c9b7
mov eax, dword [eax + 4]
jmp 0x40c9ba
add eax, 4
cmp dword [esp + 0x90], ebx
mov ecx, dword [esp + 0x7c]
jae 0x40c9cb
lea ecx, [esp + 0x7c]
push eax
push ecx
push ebp
push 0x42fa68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x3c], ebx
jb 0x40c9ec
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00414041
add esp, 4
cmp dword [esp + 0x90], ebx
mov esi, 7
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
jb 0x40ca14
mov edx, dword [esp + 0x7c]
push edx
call fcn.00414041
add esp, 4
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], di
jb 0x40ca3a
mov eax, dword [esp + 0x44]
push eax
call fcn.00414041
add esp, 4
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x74], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
jb 0x40ca65
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00414041
add esp, 4
add ebp, 0xb8
sub dword [esp + 0x18], 1
jne 0x40c841
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00414002
add esp, 0x90
ret 8