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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418f28
push eax
mov dword fs:[0], esp
sub esp, 0x3dc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x4dc]
cmp dword [eax + 0x14], ebx
je 0x412cf0
cmp dword [eax + 0x3a8], ebx
je 0x412cf0
mov eax, dword [esp + 0x400]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x3f4], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x3f4], 1
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esi + 0x4dc]
mov ebp, dword [ecx + 0x3a8]
jmp 0x412b00
xor ebx, ebx
lea edx, [ebp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.004171fe
push 0x2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x3f8], 2
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, ebx
jl 0x412c32
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
sub eax, edi
push eax
push edx
call sub.MFC42.DLL_CString::Right
mov eax, dword [esp + 0x2c]
push 0x41e530
push eax
mov byte [esp + 0x3fc], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x412c21
lea ecx, [esp + 0x38]
push edi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3f8], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x3f4], 3
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x412c21
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x400], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3f8], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x3f4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x3f4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3f4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push edx
call edi
add esp, 8
test eax, eax
je 0x413074
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x41e154
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push edx
push eax
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x413072
mov ebp, dword [ebp + 0x10c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3f4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x4dc]
cmp ebp, dword [eax + 0x3a8]
jne 0x412afe
lea ecx, [esp + 0x10]
mov byte [esp + 0x3f4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3f4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x48]
call fcn.004171f2
mov edi, dword [esp + 0x3fc]
push ebx
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x3fc], 7
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x48]
je 0x413802
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::GetLength
mov ecx, dword [esp + 0x404]
mov ebp, dword [esp + 0x408]
push ebp
mov dword [ecx], eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::GetLastWriteTime
mov eax, dword [esi + 0x4dc]
cmp dword [eax + 0x14], ebx
jne 0x412d67
mov edx, dword [ebp]
mov dword [eax + 0x18], edx
mov eax, dword [esi + 0x4dc]
mov ecx, dword [ebp + 4]
mov dword [eax + 0x1c], ecx
xor edx, edx
push ebx
mov dword [esp + 0x70], edx
push ebx
mov dword [esp + 0x78], edx
push 3
mov dword [esp + 0x80], edx
push ebx
push 1
mov dword [esp + 0x8c], edx
push bind
push edi
mov dword [esp + 0x98], edx
mov byte [esp + 0x4c], dl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebp, ebx
je 0x4137fe
cmp ebp, 0xffffffff
je 0x4137fe
lea eax, [esp + 0x30]
lea ecx, [esp + 0x6c]
push eax
push ecx
push ebp
call fcn.00402510
add esp, 0xc
cmp eax, ebx
jne 0x413044
mov dl, byte [0x41ef68]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], dl
mov byte [esp + 0x168], dl
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esp + 0x169]
rep stosd dword es:[edi], eax
mov dword [esp + 0x3d], eax
mov ecx, 0x20
mov dword [esp + 0x41], eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], dl
mov word [esp + 0x45], ax
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x1ed]
mov byte [esp + 0x1ec], dl
mov byte [esp + 0x2ec], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2ed]
mov byte [esp + 0x80], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x3c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x4dc]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 0x3b0]
test cl, 1
je 0x412f9b
test cl, 2
je 0x412f9b
add eax, 0x20
lea ecx, [esp + 0xa0]
push eax
push 0x41e090
push ecx
call edi
mov edx, dword [esi + 0x4dc]
lea eax, [esp + 0x174]
add edx, 0x61
push edx
push 0x41e090
push eax
call edi
mov ecx, dword [esi + 0x4dc]
lea edx, [esp + 0x54]
add ecx, 0xe2
push ecx
push 0x41e090
push edx
call edi
mov eax, dword [esi + 0x4dc]
lea ecx, [esp + 0x108]
add eax, 0xed
push eax
push 0x41e090
push ecx
call edi
mov edx, dword [esi + 0x4dc]
lea eax, [esp + 0x21c]
add edx, 0x16d
push edx
push 0x41e090
push eax
call edi
mov ecx, dword [esi + 0x4dc]
lea edx, [esp + 0x328]
add ecx, 0x26d
push ecx
push 0x41e090
push edx
call edi
mov eax, dword [esi + 0x4dc]
add esp, 0x48
mov ecx, dword [eax + 0x370]
add eax, 0x380
mov dword [esp + 0x28], ecx
mov edx, dword [eax - 0xc]
mov dword [esp + 0x20], edx
mov ecx, dword [eax - 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax - 4]
push eax
lea eax, [esp + 0x84]
push 0x41e090
push eax
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x4dc]
add esp, 0xc
mov ecx, dword [eax + 0x3b4]
mov dword [esi + 0x3d0], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x3b0]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0xf4]
push eax
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x310]
push edx
lea ecx, [esp + 0x214]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x198]
push edx
lea ecx, [esp + 0xd4]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
push ebp
call fcn.00402700
mov cl, byte [esp + 0x7c]
add esp, 0x44
test cl, 8
mov dword [esi + 0x3cc], ebx
je 0x413024
mov dword [esi + 0x3cc], 1
test cl, 0x10
je 0x413030
or dword [esi + 0x3cc], 2
test cl, 0x20
je 0x41303c
or dword [esi + 0x3cc], 4
cmp eax, ebx
je 0x413237
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
mov dword [esp + 0x3f4], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 2
jmp 0x41381d
xor ebx, ebx
mov ecx, dword [esi + 0x4dc]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add ecx, 0x20
lea edx, [esi + 0x2c]
push ecx
push 0x41e090
push edx
call edi
mov eax, dword [esi + 0x4dc]
lea ecx, [esi + 0x6d]
add eax, 0x61
push eax
push 0x41e090
push ecx
call edi
mov edx, dword [esi + 0x4dc]
lea eax, [esi + 0xee]
add edx, 0xe2
push edx
push 0x41e090
push eax
call edi
mov ecx, dword [esi + 0x4dc]
lea edx, [esi + 0xf9]
add ecx, 0xed
push ecx
push 0x41e090
push edx
call edi
mov eax, dword [esi + 0x4dc]
lea ecx, [esi + 0x179]
add eax, 0x16d
push eax
push 0x41e090
push ecx
call edi
mov edx, dword [esi + 0x4dc]
lea eax, [esi + 0x279]
add edx, 0x26d
push edx
push 0x41e090
push eax
call edi
mov eax, dword [esi + 0x4dc]
add esp, 0x48
mov ecx, dword [eax + 0x370]
add eax, 0x380
mov dword [esi + 0x37c], ecx
mov edx, dword [eax - 0xc]
mov dword [esi + 0x380], edx
mov ecx, dword [eax - 8]
mov dword [esi + 0x384], ecx
mov edx, dword [eax - 4]
push eax
lea eax, [esi + 0x38c]
push 0x41e090
push eax
mov dword [esi + 0x388], edx
call edi
mov ecx, dword [esi + 0x4dc]
add esp, 0xc
mov edx, dword [ecx + 0x3b4]
mov dword [esi + 0x3d0], edx
mov al, byte [ebp]
mov byte [esi + 0x3b4], al
mov ecx, dword [ebp + 4]
and eax, 0x7f
sub ecx, eax
mov dword [esi + 0x3ac], ecx
mov edx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [esp + 0x404]
mov dword [esi + 0x3b0], edx
mov dword [ecx], eax
mov edx, dword [esi + 0x4dc]
mov eax, dword [esp + 0x408]
mov ecx, dword [edx + 0x18]
mov dword [eax], ecx
mov edx, dword [esi + 0x4dc]
mov ecx, dword [edx + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x3b8]
cmp eax, ebx
je 0x4131c7
cmp eax, 0xffffffff
je 0x4131c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x4dc]
push ebx
push ebx
push 3
mov eax, dword [edx + 0x3a0]
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3b8], eax
jne 0x4131f7
mov dword [esi + 0x3b8], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x3f4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3f4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3f4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x41381d
lea eax, [esp + 0xa0]
mov ecx, 0x41efec
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x168]
push ecx
mov ecx, 0x41efe8
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0xe4]
mov ecx, 0x41efac
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x3c]
mov ecx, 0x41efa8
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, 0x41efa8
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, 0x41efa8
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1ec]
mov dword [0x41efc4], ecx
push eax
mov ecx, 0x41efe4
mov dword [0x41efc0], edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2ec]
push ecx
mov ecx, 0x41efe0
call sub.MFC42.DLL_CString::operator
mov al, byte [esp + 0x2c]
test al, 1
je 0x41379f
test al, 2
je 0x41379f
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
sub edx, eax
mov dword [esp + 0x24], ebx
je 0x413044
mov ecx, dword [esp + 0x78]
push ebx
add ecx, eax
push ecx
push ebp
call fcn.00401040
push ebp
push 3
lea edx, [esp + 0x78]
push 1
push edx
call fcn.00401000
add esp, 0x1c
cmp eax, 3
jb 0x413044
cmp byte [esp + 0x64], 5
jne 0x413044
mov eax, dword [esp + 0x65]
mov ecx, dword [esp + 0x66]
and eax, 0xff
and ecx, 0xff
shl eax, 8
add eax, ecx
cmp eax, ebx
jle 0x413044
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 0x4dc]
sub edx, eax
sub edx, 3
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call fcn.004164d0
cmp dword [esp + 0x24], ebx
je 0x413044
mov eax, dword [esi + 0x4dc]
cmp dword [eax + 0x14], ebx
jne 0x413658
mov ecx, dword [eax + 0x3a8]
add eax, 0x3a8
cmp ecx, ebx
je 0x413394
push eax
call fcn.00401630
add esp, 4
mov ecx, dword [esi + 0x4dc]
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x3a8], edx
mov eax, dword [esi + 0x4dc]
mov dword [eax + 0x14], ebp
mov eax, dword [esi + 0x4dc]
or ebp, 0xffffffff
cmp dword [eax + 0x14], ebp
jne 0x4133be
mov dword [eax + 0x14], ebx
mov edx, dword [esi + 0x4dc]
lea ecx, [esp + 0xa0]
push ecx
add edx, 0x20
push 0x41e090
push edx
call edi
mov ecx, dword [esi + 0x4dc]
lea eax, [esp + 0x174]
push eax
add ecx, 0x61
push 0x41e090
push ecx
call edi
mov eax, dword [esi + 0x4dc]
lea edx, [esp + 0x54]
push edx
add eax, 0xe2
push 0x41e090
push eax
call edi
mov edx, dword [esi + 0x4dc]
lea ecx, [esp + 0x108]
push ecx
add edx, 0xed
push 0x41e090
push edx
call edi
mov ecx, dword [esi + 0x4dc]
lea eax, [esp + 0x21c]
push eax
add ecx, 0x16d
push 0x41e090
push ecx
call edi
mov eax, dword [esi + 0x4dc]
lea edx, [esp + 0x328]
push edx
add eax, 0x26d
push 0x41e090
push eax
call edi
mov ecx, dword [esi + 0x4dc]
mov edx, dword [esp + 0x70]
add esp, 0x48
mov dword [ecx + 0x370], edx
mov eax, dword [esi + 0x4dc]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x374], ecx
mov edx, dword [esi + 0x4dc]
mov eax, dword [esp + 0x34]
mov dword [edx + 0x378], eax
mov ecx, dword [esi + 0x4dc]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x80]
mov dword [ecx + 0x37c], edx
mov ecx, dword [esi + 0x4dc]
push eax
add ecx, 0x380
push 0x41e090
push ecx
call edi
mov edx, dword [esi + 0x4dc]
mov eax, dword [esp + 0x38]
mov dword [edx + 0x3b0], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x4dc]
and ecx, 0xff
lea eax, [esp + 0xac]
mov dword [edx + 0x3b4], ecx
push eax
lea ecx, [esi + 0x2c]
push 0x41e090
push ecx
call edi
lea edx, [esp + 0x180]
lea eax, [esi + 0x6d]
push edx
push 0x41e090
push eax
call edi
lea ecx, [esp + 0x60]
lea edx, [esi + 0xee]
push ecx
push 0x41e090
push edx
call edi
lea eax, [esp + 0x114]
lea ecx, [esi + 0xf9]
push eax
push 0x41e090
push ecx
call edi
lea edx, [esp + 0x228]
lea eax, [esi + 0x179]
push edx
push 0x41e090
push eax
call edi
add esp, 0x48
lea ecx, [esp + 0x2ec]
lea edx, [esi + 0x279]
push ecx
push 0x41e090
push edx
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x380], ecx
lea ecx, [esp + 0x8c]
mov dword [esi + 0x384], edx
mov dword [esi + 0x37c], eax
mov eax, dword [esp + 0x28]
push ecx
lea edx, [esi + 0x38c]
push 0x41e090
push edx
mov dword [esi + 0x388], eax
call edi
mov eax, dword [esi + 0x4dc]
add esp, 0x18
mov ecx, dword [eax + 0x3a8]
mov cl, byte [ecx]
mov byte [esi + 0x3b4], cl
mov edx, dword [eax + 0x3a8]
and ecx, 0x7f
mov edx, dword [edx + 4]
sub edx, ecx
mov dword [esi + 0x3ac], edx
mov ecx, dword [eax + 0x3a8]
mov edx, dword [ecx + 8]
mov ecx, dword [esi + 0x3ac]
mov dword [esi + 0x3b0], edx
mov eax, dword [eax + 0x3b4]
mov edx, dword [esp + 0x404]
mov dword [esi + 0x3d0], eax
mov dword [edx], ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esi + 0x3b8]
cmp eax, ebx
je 0x41360f
cmp eax, ebp
je 0x41360f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x4dc]
push ebx
push ebx
push 3
mov eax, dword [eax + 0x3a0]
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebp
mov dword [esi + 0x3b8], eax
jne 0x41363e
mov dword [esi + 0x3b8], ebx
mov dword [esp + 0x3f4], ebp
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 1
jmp 0x41381d
mov eax, dword [esi + 0x3b8]
cmp eax, ebx
je 0x41366e
cmp eax, 0xffffffff
je 0x41366e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xa0]
lea edx, [esi + 0x2c]
push ecx
push 0x41e090
push edx
mov dword [esi + 0x3b8], ebp
call edi
lea eax, [esp + 0x174]
lea ecx, [esi + 0x6d]
push eax
push 0x41e090
push ecx
call edi
lea edx, [esp + 0x54]
lea eax, [esi + 0xee]
push edx
push 0x41e090
push eax
call edi
lea ecx, [esp + 0x108]
lea edx, [esi + 0xf9]
push ecx
push 0x41e090
push edx
call edi
lea eax, [esp + 0x21c]
lea ecx, [esi + 0x179]
push eax
push 0x41e090
push ecx
call edi
lea edx, [esp + 0x328]
lea eax, [esi + 0x279]
push edx
push 0x41e090
push eax
call edi
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
add esp, 0x48
mov dword [esi + 0x380], edx
lea edx, [esp + 0x80]
mov dword [esi + 0x384], eax
mov dword [esi + 0x37c], ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esi + 0x38c]
push 0x41e090
push eax
mov dword [esi + 0x388], ecx
call edi
mov ecx, dword [esp + 0x30]
push ecx
mov al, byte [ecx]
mov byte [esi + 0x3b4], al
mov edx, dword [ecx + 4]
and eax, 0x7f
sub edx, eax
mov dword [esi + 0x3ac], edx
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
and edx, 0xff
mov dword [esi + 0x3d0], edx
mov edx, dword [esp + 0x414]
mov dword [esi + 0x3b0], eax
mov eax, dword [esi + 0x3ac]
mov dword [edx], eax
call sub.MFC42.DLL_operatordelete
add esp, 0x10
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x48]
mov dword [esp + 0x3f4], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, 4
jmp 0x41381d
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esi + 0x3b8]
cmp eax, ebx
je 0x4137be
cmp eax, 0xffffffff
je 0x4137be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x4dc]
push ebx
push ebx
push 3
mov eax, dword [eax + 0x3a0]
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3b8], eax
jne 0x4137ee
mov dword [esi + 0x3b8], ebx
mov dword [esp + 0x3f4], 0xffffffff
jmp 0x413645
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x48]
mov dword [esp + 0x3f4], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
mov ecx, dword [esp + 0x3ec]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3e8
ret 0x10