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

Disassembly:
push 0xffffffffffffffff
push 0x4f26f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x1ac]
mov dword [0x5117bc], ecx
push 0x100
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1a4], 0
mov dword [0x5117b8], eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x50f74c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x9c]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf6f2
lea ebx, [ebp + 0x18]
xor edi, edi
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.00417070
lea edx, [esp + 0x1f]
mov ecx, ebp
push edx
push esi
call fcn.004cfbf0
test eax, eax
push esi
je 0x4cf728
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.004e2712
mov ax, 0xfff3
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x194
ret 0xc
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esp + 0x20], 0x4f5778
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 1
call fcn.00417070
mov eax, dword [ebp + 0x20]
xor esi, esi
cmp eax, edi
jle 0x4cf789
sub esp, 0x30
mov ecx, ebx
mov eax, esp
mov dword [esp + 0x40], esp
push esi
push eax
call fcn.0040b280
lea ecx, [esp + 0x50]
call fcn.00416960
mov eax, dword [ebp + 0x20]
inc esi
cmp esi, eax
jl 0x4cf766
mov edi, 0xffff8001
mov eax, 0x7fff
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov esi, edi
mov dword [esp + 0x18], eax
call fcn.00417070
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4cf8fa
lea ecx, [esp + 0x38]
call fcn.00456e50
mov edx, dword [esp + 0x18]
sub esp, 0x30
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x1d8], 2
call fcn.0040b280
lea eax, [esp + 0x98]
lea ecx, [esp + 0x68]
push eax
call fcn.00456e90
lea ecx, [esp + 0x68]
call fcn.00456e80
lea ecx, [esp + 0x38]
sub esp, 0x30
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x6c]
and ecx, edx
mov eax, esp
mov dword [esp + 0x64], esp
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x78]
mov word [eax + 0x10], cx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0x14], edx
mov cx, word [esp + 0x80]
mov word [eax + 0x18], cx
mov dx, word [esp + 0x82]
mov word [eax + 0x1a], dx
mov cx, word [esp + 0x84]
mov word [eax + 0x1c], cx
mov dx, word [esp + 0x86]
mov word [eax + 0x1e], dx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x20], ecx
mov edx, dword [esp + 0x8c]
mov dword [eax + 0x24], edx
mov cx, word [esp + 0x90]
mov word [eax + 0x28], cx
mov edx, dword [esp + 0x94]
mov ecx, ebx
mov dword [eax + 0x2c], edx
mov dword [eax], 0x4f5588
call fcn.00416960
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4cf8ac
cmp eax, 1
jne 0x4cf8d4
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
jle 0x4cf8b6
mov edi, ecx
mov eax, dword [esp + 0x40]
cmp eax, esi
jle 0x4cf8c0
mov esi, eax
cmp ecx, dword [esp + 0x14]
jge 0x4cf8ca
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x10]
jge 0x4cf8d4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a0], 1
call fcn.00456e80
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x4cf7bc
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], 0x4f5778
mov ecx, edx
sub edi, edx
neg ecx
mov dword [ebp + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov ebx, ecx
sub esi, ecx
neg ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], esi
mov esi, dword [esp + 0x24]
mov byte [esp + 0x1a0], 3
test esi, esi
je 0x4cf953
test eax, eax
je 0x4cf94a
lea edi, [eax]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x30
dec edi
jne 0x4cf938
mov esi, dword [esp + 0x24]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1a8]
mov dword [esp + 0x20], 0x4f4f00
mov dword [esp + 0x1a0], 0xffffffff
call fcn.004e2712
xor ax, ax
jmp 0x4cf70d