Function at 0x408c90
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 0x466d51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x630
mov eax, dword [0x48644c]
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 0x46f360
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 0x408d0f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x409be8
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.00406cb0
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.00421a70
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 0x409bb5
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x23c]
call fcn.00421ab0
test eax, eax
je 0x409bb5
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 0x409bb5
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, 0x4870d8
mov dword [esp + 0x44], 0x60
call fcn.00401400
test eax, eax
je 0x409bb5
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 0x409bb5
lea edx, [esp + 0x258]
test edx, edx
je 0x409bb5
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x409bb5
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 0x40907d
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.00462480
push ebx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64c], 1
call fcn.00464680
push ebx
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00461270
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
call fcn.00461330
mov esi, 3
lea ecx, [esp + 0x92]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x408fa1
mov cl, byte [esp + eax + 0x90]
mov dl, byte [esp + eax + 0x78]
add cl, dl
mov byte [esp + eax + 0x90], cl
jmp 0x408fba
cmp eax, 0x1c
jge 0x408fba
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 0x408fd5
mov cl, byte [esp + eax + 0x91]
mov dl, byte [esp + eax + 0x79]
add cl, dl
mov byte [esp + eax + 0x91], cl
jmp 0x408fee
cmp eax, 0x1b
jge 0x408fee
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 0x409009
mov cl, byte [esp + eax + 0x92]
mov dl, byte [esp + eax + 0x7a]
add cl, dl
mov byte [esp + eax + 0x92], cl
jmp 0x409022
cmp eax, 0x1a
jge 0x409022
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 0x409037
mov dl, byte [esp + eax + 0x7b]
jmp 0x409040
cmp edx, 0x1c
jge 0x409043
mov dl, byte [esp + eax + 0x5b]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x408f86
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x94]
push 0x20
push ecx
call fcn.0045ba50
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x644], bl
call fcn.00462310
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call dword [edx + 4]
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 + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x409bb5
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 0x409bb5
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
call fcn.00406e50
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 0x409b47
lea ecx, [ecx]
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 0x409b47
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 0x409b47
lea eax, [esp + 0x178]
test eax, eax
je 0x409b47
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x409b47
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 0x40921c
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 + 4]
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 + 0xc]
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x409b47
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.0045bc00
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x409b47
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 0x4094e7
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 0x409371
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 0x409377
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 0x409381
sub eax, edx
cmp eax, 0x20
je 0x409439
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x409421
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 0x409439
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 0x409491
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409465
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 0x4094e1
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 0x4094e7
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4094b7
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 + 4]
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 + 0xc]
mov esi, eax
lea eax, [esp + 0x38]
push eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x409b47
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.0045bc00
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x409b47
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 0x4097c2
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 0x409646
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 0x40964c
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 0x409656
sub eax, edx
cmp eax, 0x20
je 0x40970f
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4096f7
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 0x40970f
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 0x40976c
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
jmp 0x409740
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409740
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 0x4097bc
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 0x4097c2
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409792
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 + 4]
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 + 0xc]
lea ecx, [esp + 0x3c]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x409b47
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, 0x4870d8
call fcn.00401400
test eax, eax
je 0x409b47
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.0045bc00
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x409b47
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 0x409a9b
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.00462480
push ebx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64c], 2
call fcn.00464680
push ebx
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00461270
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x48]
call fcn.00461330
mov esi, 3
lea ecx, [esp + 0xda]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x4099b6
mov cl, byte [esp + eax + 0xd8]
mov dl, byte [esp + eax + 0x90]
add cl, dl
mov byte [esp + eax + 0xd8], cl
jmp 0x4099cf
cmp eax, 0x1c
jge 0x4099cf
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 0x4099ed
mov cl, byte [esp + eax + 0xd9]
mov dl, byte [esp + eax + 0x91]
add cl, dl
mov byte [esp + eax + 0xd9], cl
jmp 0x409a06
cmp eax, 0x1b
jge 0x409a06
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 0x409a24
mov cl, byte [esp + eax + 0xda]
mov dl, byte [esp + eax + 0x92]
add cl, dl
mov byte [esp + eax + 0xda], cl
jmp 0x409a3d
cmp eax, 0x1a
jge 0x409a3d
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, [ecx + esi]
cmp edx, 0x14
jge 0x409a55
mov dl, byte [esp + eax + 0x93]
jmp 0x409a5e
cmp edx, 0x1c
jge 0x409a61
mov dl, byte [esp + eax + 0x5b]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x409998
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0xdc]
push 0x20
push ecx
call fcn.0045ba50
add esp, 0xc
lea ecx, [esp + 0x44]
mov byte [esp + 0x644], bl
call fcn.00462310
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x134]
push ecx
mov ecx, eax
call dword [edx + 4]
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 + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x409b47
push 0x58
lea edx, [esp + 0x17c]
push edx
mov ecx, 0x4870d8
call fcn.00401410
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.004088f0
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 0x409130
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0x18], ecx
je 0x409b7c
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00406cb0
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 0x409bb5
movzx ecx, word [eax + 4]
cmp dword [eax + 0x68], ecx
je 0x409bad
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
mov ecx, esi
call fcn.00406cb0
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 0x409bb5
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 0x409bdb
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.00436153
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4