Function at 0x40654d
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dafd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
push 0
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.0040102b
mov dword [ebp - 4], 0
push 1
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.00401174
push eax
mov ecx, dword [ebp + 8]
call fcn.0041bcb9
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
push eax
mov eax, dword [ebp - 0x28]
add eax, 4
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 4
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 8
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 6
push eax
mov edx, dword [ebp - 0x28]
add edx, 0xa
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 8
push eax
mov eax, dword [ebp - 0x28]
add eax, 0xc
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xe
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0xc
push eax
mov edx, dword [ebp - 0x28]
add edx, 0x10
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0xe
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x12
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x14
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x14
push eax
mov edx, dword [ebp - 0x28]
add edx, 0x18
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x18
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x1c
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x20
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x1e
push eax
mov edx, dword [ebp - 0x28]
add edx, 0x22
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x20
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x24
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x22
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x26
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 2
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x24
push eax
mov edx, dword [ebp - 0x28]
add edx, 0x28
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x26
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x18]
call fcn.00401174
add eax, 0x2a
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x30
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004010ae
push 4
push 0x4242c0
mov edx, dword [ebp - 0x28]
add edx, 4
push edx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4067ba
mov byte [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401068
mov al, byte [ebp - 0x20]
jmp 0x4068c8
mov ecx, dword [ebp + 8]
call fcn.0041c155
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x34
call sub.mfc42.dll_CString::GetBuffer
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 0x20]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x34
call sub.mfc42.dll_CString::ReleaseBuffer
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x22]
test ecx, ecx
je 0x406852
push 0
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + 0x22]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x38
call fcn.004010ed
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 0x22]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x38
call fcn.00401174
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x24]
test ecx, ecx
je 0x4068a3
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dx, word [ecx + 0x24]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x44
call sub.mfc42.dll_CString::GetBuffer
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0x44
call sub.mfc42.dll_CString::ReleaseBuffer
mov ecx, dword [ebp + 8]
call fcn.0041c155
xor edx, edx
cmp eax, dword [ebp - 0x1c]
sete dl
mov byte [ebp - 0x24], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401068
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4