Function at 0x409ae0
Capabilities:
Delete file
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450271
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x630
mov eax, dword [0x46b378]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x6c]
push edi
mov dword [esp + 0x638], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push 0x457930
mov dword [esp + 0x648], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.MSVCR71.dll__wfopen]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x409b5f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x40aa2f
xor eax, eax
mov ecx, 0x18
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 4]
lea edi, [esi + 0x60]
push ecx
mov ecx, edi
mov dword [esp + 0x24], edi
call fcn.00407b00
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebx
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
lea ecx, [esp + 0x238]
mov word [esi + 4], bx
mov dword [esi + 0x18], ebx
call fcn.0041ebf0
mov edx, dword [esp + 0x24]
push edx
push 0x20
lea eax, [esp + 0x240]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 0x20
jne 0x40a9fc
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x23c]
call fcn.0041ec30
test eax, eax
je 0x40a9fc
mov edx, dword [esp + 0x24]
xor eax, eax
mov byte [esp + 0x378], bl
mov ecx, 0x17
lea edi, [esp + 0x379]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x60
stosb byte es:[edi], al
lea eax, [esp + 0x380]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 0x60
jne 0x40a9fc
xor eax, eax
mov byte [esp + 0x258], bl
mov ecx, 0x17
lea edi, [esp + 0x259]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
lea esi, [esp + 0x378]
lea edi, [esp + 0x2b8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x25c]
push edx
push 0x60
lea eax, [esp + 0x2c4]
push eax
mov ecx, 0x46bfc8
mov dword [esp + 0x44], 0x60
call fcn.00401bc0
test eax, eax
je 0x40a9fc
mov ecx, 0x18
lea esi, [esp + 0x258]
lea edi, [esp + 0x2b8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x2b8]
test ecx, ecx
je 0x40a9fc
lea edx, [esp + 0x258]
test edx, edx
je 0x40a9fc
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40a9fc
xor ecx, ecx
mov dword [esp + 0xb5], ecx
mov dword [esp + 0xb9], ecx
mov dword [esp + 0xbd], ecx
mov dword [esp + 0xc1], ecx
mov dword [esp + 0xc5], ecx
mov dword [esp + 0xc9], ecx
lea edx, [esp + 0xb4]
test edx, edx
mov dword [esp + 0xcd], ecx
mov byte [esp + 0xb4], bl
mov dword [esp + 0xd1], ecx
je 0x409ecd
xor eax, eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x79], ecx
mov dword [esp + 0x9d], eax
mov dword [esp + 0x7d], ecx
mov dword [esp + 0xa1], eax
mov dword [esp + 0x81], ecx
mov dword [esp + 0x85], ecx
mov dword [esp + 0xa5], eax
xor edx, edx
mov dword [esp + 0xa9], eax
mov dword [esp + 0x89], ecx
mov dword [esp + 0x6d], edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], bl
mov dword [esp + 0xad], eax
mov byte [esp + 0x78], bl
mov byte [esp + 0x6c], bl
mov dword [esp + 0x71], edx
call fcn.0044b9b0
push ebx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64c], 1
call fcn.0044dbf0
push ebx
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0044a7a0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
call fcn.0044a860
mov esi, 3
lea ecx, [esp + 0x92]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x409df1
mov cl, byte [esp + eax + 0x90]
mov dl, byte [esp + eax + 0x78]
add cl, dl
mov byte [esp + eax + 0x90], cl
jmp 0x409e0a
cmp eax, 0x1c
jge 0x409e0a
mov dl, byte [esp + eax + 0x90]
mov cl, byte [esp + eax + 0x58]
add dl, cl
mov byte [esp + eax + 0x90], dl
cmp eax, 0x13
jge 0x409e25
mov cl, byte [esp + eax + 0x91]
mov dl, byte [esp + eax + 0x79]
add cl, dl
mov byte [esp + eax + 0x91], cl
jmp 0x409e3e
cmp eax, 0x1b
jge 0x409e3e
mov dl, byte [esp + eax + 0x91]
mov cl, byte [esp + eax + 0x59]
add dl, cl
mov byte [esp + eax + 0x91], dl
cmp eax, 0x12
jge 0x409e59
mov cl, byte [esp + eax + 0x92]
mov dl, byte [esp + eax + 0x7a]
add cl, dl
mov byte [esp + eax + 0x92], cl
jmp 0x409e72
cmp eax, 0x1a
jge 0x409e72
mov dl, byte [esp + eax + 0x92]
mov cl, byte [esp + eax + 0x5a]
add dl, cl
mov byte [esp + eax + 0x92], dl
lea ecx, [esp + eax + 0x92]
lea edx, [esi + ecx]
cmp edx, 0x14
jge 0x409e87
mov dl, byte [esp + eax + 0x7b]
jmp 0x409e90
cmp edx, 0x1c
jge 0x409e93
mov dl, byte [esp + eax + 0x5b]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x409dd6
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x94]
push 0x20
push ecx
call fcn.004444c0
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x644], bl
call fcn.0044b840
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call dword [edx]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x25c]
push eax
push edi
lea eax, [esp + 0x2c4]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40a9fc
mov eax, dword [esp + 0x1c]
mov edi, eax
add eax, 0x1c
push str.ChatHall2010_2009_11_17_18:32:11
mov ecx, 0x18
lea esi, [esp + 0x25c]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40a9fc
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
call fcn.00407ca0
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp word [edx + 4], bx
mov byte [esp + 0x318], bl
mov ecx, 0x17
lea edi, [esp + 0x319]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x50], ebx
jbe 0x40a98e
lea esp, [esp]
mov eax, dword [esp + 0x24]
push eax
push 0x60
lea ecx, [esp + 0x320]
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 0x60
jb 0x40a98e
xor eax, eax
mov byte [esp + 0x178], bl
mov ecx, 0x17
lea edi, [esp + 0x179]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x1d8]
test edx, edx
mov ecx, 0x18
lea esi, [esp + 0x318]
lea edi, [esp + 0x1d8]
mov dword [esp + 0x10], 0x60
rep movsd dword es:[edi], dword [esi]
je 0x40a98e
lea eax, [esp + 0x178]
test eax, eax
je 0x40a98e
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x40a98e
xor ecx, ecx
mov dword [esp + 0x155], ecx
mov dword [esp + 0x159], ecx
mov dword [esp + 0x15d], ecx
mov dword [esp + 0x161], ecx
mov dword [esp + 0x165], ecx
mov dword [esp + 0x169], ecx
lea edx, [esp + 0x154]
test edx, edx
mov dword [esp + 0x16d], ecx
mov byte [esp + 0x154], bl
mov dword [esp + 0x171], ecx
je 0x40a06c
push 0x20
mov eax, edx
push str.EA4D2AEC3AED4a8fAAC17DCB23F12C4E
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x158]
push ecx
mov ecx, eax
call dword [edx]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x17c]
push eax
push 0x60
lea eax, [esp + 0x1e4]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40a98e
mov edx, dword [esp + 0x10]
mov ecx, 0x18
lea esi, [esp + 0x178]
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], edx
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x40a98e
xor eax, eax
mov dword [esp + 0x10d], eax
mov dword [esp + 0x111], eax
mov dword [esp + 0x115], eax
mov dword [esp + 0x119], eax
mov dword [esp + 0x11d], eax
mov dword [esp + 0x121], eax
lea ecx, [esp + 0x10c]
test ecx, ecx
mov dword [esp + 0x125], eax
mov byte [esp + 0x10c], bl
mov dword [esp + 0x129], eax
je 0x40a336
mov ecx, 0xa
mov esi, str.SoftwareBaduGuaGua
lea edi, [esp + 0x430]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x35
lea edi, [esp + 0x45a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x18]
push edx
push 0x20019
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x43c]
push eax
push SysReAllocStringLen
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a1c0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x68]
push eax
push ebx
push str.LoginGUID
push ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov dword [esp + 0x18], ebx
jmp 0x40a1c6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a1d0
sub eax, edx
cmp eax, 0x20
je 0x40a288
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x40a270
movzx ecx, byte [esp + 0x10b]
movzx edx, byte [esp + 0x10a]
movzx eax, byte [esp + 0x109]
push ecx
movzx ecx, byte [esp + 0x10c]
push edx
movzx edx, byte [esp + 0x10f]
push eax
movzx eax, byte [esp + 0x112]
push ecx
movzx ecx, byte [esp + 0x115]
push edx
movzx edx, byte [esp + 0x118]
push eax
movzx eax, word [esp + 0x11a]
push ecx
movzx ecx, word [esp + 0x11c]
push edx
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
lea eax, [esp + 0x13c]
push 0x20
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x38
jmp 0x40a288
push 0x20
lea ecx, [esp + 0x110]
push str.033EA43D0C95436792206E6FF8E4E343
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebx
lea eax, [esp + 0x43c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a2e0
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a2b4
sub eax, edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x110]
push ecx
push 3
push ebx
push str.LoginGUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x18]
push eax
jmp 0x40a330
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x434]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40a336
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a306
mov ecx, dword [esp + 0x18]
sub eax, edx
push eax
lea eax, [esp + 0x110]
push eax
push 3
push ebx
push str.LoginGUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
push edx
call esi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
push 0x20
lea edx, [esp + 0x110]
push edx
call dword [eax]
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x17c]
push edx
mov edx, dword [esp + 0x48]
push edx
lea edx, [esp + 0x1e4]
push edx
push 1
call dword [eax + 8]
mov esi, eax
lea eax, [esp + 0x38]
push eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40a98e
mov ecx, 0x18
lea esi, [esp + 0x178]
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x40a98e
xor edx, edx
mov dword [esp + 0xb5], edx
mov dword [esp + 0xb9], edx
mov dword [esp + 0xbd], edx
mov dword [esp + 0xc1], edx
mov dword [esp + 0xc5], edx
mov dword [esp + 0xc9], edx
lea eax, [esp + 0xb4]
test eax, eax
mov dword [esp + 0xcd], edx
mov byte [esp + 0xb4], bl
mov dword [esp + 0xd1], edx
je 0x40a607
mov ecx, 0xa
mov esi, str.SoftwareBaduGuaGua
lea edi, [esp + 0x530]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x35
lea edi, [esp + 0x55a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x53c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
stosw word es:[edi], ax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a494
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x64]
push edx
push ebx
push str.LoginGUID
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x80], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov dword [esp + 0x14], ebx
jmp 0x40a49a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a4a4
sub eax, edx
cmp eax, 0x20
je 0x40a559
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x40a541
movzx eax, byte [esp + 0x87]
movzx ecx, byte [esp + 0x86]
movzx edx, byte [esp + 0x85]
push eax
movzx eax, byte [esp + 0x88]
push ecx
movzx ecx, byte [esp + 0x8b]
push edx
movzx edx, byte [esp + 0x8e]
push eax
movzx eax, byte [esp + 0x91]
push ecx
movzx ecx, byte [esp + 0x94]
push edx
movzx edx, word [esp + 0x96]
push eax
movzx eax, word [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0xe4]
push 0x20
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x38
jmp 0x40a559
push 0x20
lea eax, [esp + 0xb8]
push str.A86486387FF44994B1C3D4A68A09B18B
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20006
push ebx
lea edx, [esp + 0x53c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a5b1
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a585
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
lea eax, [esp + 0xb8]
push eax
push 3
push ebx
push str.LoginGUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x14]
push edx
jmp 0x40a601
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x534]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40a607
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a5d7
sub eax, edx
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb8]
push edx
push 3
push ebx
push str.LoginGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
push 0x20
lea eax, [esp + 0xb8]
push eax
call dword [edx]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x17c]
push eax
mov eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x1e4]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x3c]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40a98e
lea edx, [esp + 0x10]
push edx
mov ecx, 0x18
lea esi, [esp + 0x17c]
lea edi, [esp + 0x1dc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x17c]
push eax
push ecx
lea edx, [esp + 0x1e4]
push edx
mov ecx, 0x46bfc8
call fcn.00401bc0
test eax, eax
je 0x40a98e
mov ecx, 0x18
lea esi, [esp + 0x178]
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x40a98e
xor ecx, ecx
mov dword [esp + 0x131], ecx
mov dword [esp + 0x135], ecx
mov dword [esp + 0x139], ecx
mov dword [esp + 0x13d], ecx
mov dword [esp + 0x141], ecx
mov dword [esp + 0x145], ecx
lea edx, [esp + 0x130]
test edx, edx
mov dword [esp + 0x149], ecx
mov byte [esp + 0x130], bl
mov dword [esp + 0x14d], ecx
je 0x40a8e3
xor eax, eax
mov dword [esp + 0xd9], eax
mov dword [esp + 0xdd], eax
mov dword [esp + 0xe1], eax
mov dword [esp + 0x91], ecx
mov dword [esp + 0xe5], eax
mov dword [esp + 0x95], ecx
mov dword [esp + 0xe9], eax
mov dword [esp + 0x99], ecx
mov dword [esp + 0x9d], ecx
mov dword [esp + 0xed], eax
xor edx, edx
mov dword [esp + 0xf1], eax
mov dword [esp + 0xa1], ecx
mov dword [esp + 0x6d], edx
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], bl
mov dword [esp + 0xf5], eax
mov byte [esp + 0x90], bl
mov byte [esp + 0x6c], bl
mov dword [esp + 0x71], edx
call fcn.0044b9b0
push ebx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64c], 2
call fcn.0044dbf0
push ebx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0044a7a0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
call fcn.0044a860
mov esi, 3
lea ecx, [esp + 0xda]
xor eax, eax
sub esi, ecx
lea esp, [esp]
cmp eax, 0x14
jge 0x40a7fe
mov cl, byte [esp + eax + 0xd8]
mov dl, byte [esp + eax + 0x90]
add cl, dl
mov byte [esp + eax + 0xd8], cl
jmp 0x40a817
cmp eax, 0x1c
jge 0x40a817
mov dl, byte [esp + eax + 0xd8]
mov cl, byte [esp + eax + 0x58]
add dl, cl
mov byte [esp + eax + 0xd8], dl
cmp eax, 0x13
jge 0x40a835
mov cl, byte [esp + eax + 0xd9]
mov dl, byte [esp + eax + 0x91]
add cl, dl
mov byte [esp + eax + 0xd9], cl
jmp 0x40a84e
cmp eax, 0x1b
jge 0x40a84e
mov dl, byte [esp + eax + 0xd9]
mov cl, byte [esp + eax + 0x59]
add dl, cl
mov byte [esp + eax + 0xd9], dl
cmp eax, 0x12
jge 0x40a86c
mov cl, byte [esp + eax + 0xda]
mov dl, byte [esp + eax + 0x92]
add cl, dl
mov byte [esp + eax + 0xda], cl
jmp 0x40a885
cmp eax, 0x1a
jge 0x40a885
mov dl, byte [esp + eax + 0xda]
mov cl, byte [esp + eax + 0x5a]
add dl, cl
mov byte [esp + eax + 0xda], dl
lea ecx, [esp + eax + 0xda]
lea edx, [esi + ecx]
cmp edx, 0x14
jge 0x40a89d
mov dl, byte [esp + eax + 0x93]
jmp 0x40a8a6
cmp edx, 0x1c
jge 0x40a8a9
mov dl, byte [esp + eax + 0x5b]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x40a7e0
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0xdc]
push 0x20
push ecx
call fcn.004444c0
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x644], bl
call fcn.0044b840
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x134]
push ecx
mov ecx, eax
call dword [edx]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x17c]
push eax
push edi
lea eax, [esp + 0x1e4]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40a98e
push 0x58
lea edx, [esp + 0x17c]
push edx
mov ecx, 0x46bfc8
call fcn.00401bd0
add dword [esp + 0x2c], eax
mov ecx, 0x16
lea esi, [esp + 0x178]
lea edi, [esp + 0x3d8]
lea eax, [esp + 0x3d8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00409740
mov edi, eax
mov eax, dword [esp + 0x50]
mov ecx, 0x16
lea esi, [esp + 0x3d8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 4]
inc eax
cmp eax, edx
mov dword [esp + 0x50], eax
jl 0x409f80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0x18], ecx
je 0x40a9c3
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00407b00
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
jmp 0x40a9fc
movzx ecx, word [eax + 4]
cmp dword [eax + 0x68], ecx
je 0x40a9f4
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00407b00
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
jmp 0x40a9fc
mov dword [esp + 0x54], 1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR71.dll_fclose]
mov esi, dword [esp + 0x58]
add esp, 4
cmp esi, ebx
jne 0x40aa22
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x63c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x634]
call fcn.004225d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4