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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466cc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x500
mov eax, dword [0x48644c]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x6c]
push edi
mov dword [esp + 0x508], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push 0x46f32c
mov dword [esp + 0x518], ebx
mov dword [esp + 0x54], 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 + 0x20], eax
jne 0x4075cf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x408301
push ebx
push 0x80
push eax
mov word [esi + 4], bx
mov dword [esi + 0x18], ebx
call dword [sym.imp.MSVCR71.dll_fseek]
xor eax, eax
mov byte [esp + 0x16c], bl
mov ecx, 0x17
lea edi, [esp + 0x16d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x4c], ecx
je 0x407f9f
add ecx, 0x18
cmp ecx, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], 0x60
je 0x407f9f
lea eax, [esp + 0x160]
test eax, eax
je 0x407f9f
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x407f9f
xor ecx, ecx
mov dword [esp + 0x13d], ecx
mov dword [esp + 0x141], ecx
mov dword [esp + 0x145], ecx
mov dword [esp + 0x149], ecx
mov dword [esp + 0x14d], ecx
mov dword [esp + 0x151], ecx
lea edx, [esp + 0x13c]
test edx, edx
mov dword [esp + 0x155], ecx
mov byte [esp + 0x13c], bl
mov dword [esp + 0x159], ecx
je 0x40782b
xor eax, eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x99], ecx
mov dword [esp + 0x81], eax
mov dword [esp + 0x9d], ecx
mov dword [esp + 0x85], eax
mov dword [esp + 0xa1], ecx
mov dword [esp + 0xa5], ecx
mov dword [esp + 0x89], eax
xor edx, edx
mov dword [esp + 0x8d], eax
mov dword [esp + 0xa9], ecx
mov dword [esp + 0x69], edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], bl
mov dword [esp + 0x91], eax
mov byte [esp + 0x98], bl
mov byte [esp + 0x68], bl
mov dword [esp + 0x6d], edx
call fcn.00462480
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x51c], 1
call fcn.00464680
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00461270
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
call fcn.00461330
mov esi, 3
lea ecx, [esp + 0x76]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x40776a
mov cl, byte [esp + eax + 0x74]
mov dl, byte [esp + eax + 0x98]
add cl, dl
mov byte [esp + eax + 0x74], cl
jmp 0x40777d
cmp eax, 0x1c
jge 0x40777d
mov dl, byte [esp + eax + 0x74]
mov cl, byte [esp + eax + 0x54]
add dl, cl
mov byte [esp + eax + 0x74], dl
cmp eax, 0x13
jge 0x407795
mov cl, byte [esp + eax + 0x75]
mov dl, byte [esp + eax + 0x99]
add cl, dl
mov byte [esp + eax + 0x75], cl
jmp 0x4077a8
cmp eax, 0x1b
jge 0x4077a8
mov dl, byte [esp + eax + 0x75]
mov cl, byte [esp + eax + 0x55]
add dl, cl
mov byte [esp + eax + 0x75], dl
cmp eax, 0x12
jge 0x4077c0
mov cl, byte [esp + eax + 0x76]
mov dl, byte [esp + eax + 0x9a]
add cl, dl
mov byte [esp + eax + 0x76], cl
jmp 0x4077d3
cmp eax, 0x1a
jge 0x4077d3
mov dl, byte [esp + eax + 0x76]
mov cl, byte [esp + eax + 0x56]
add dl, cl
mov byte [esp + eax + 0x76], dl
lea ecx, [esp + eax + 0x76]
lea edx, [esi + ecx]
cmp edx, 0x14
jge 0x4077e8
mov dl, byte [esp + eax + 0x9b]
jmp 0x4077f1
cmp edx, 0x1c
jge 0x4077f4
mov dl, byte [esp + eax + 0x57]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x407752
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x78]
push 0x20
push ecx
call fcn.0045ba50
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x514], bl
call fcn.00462310
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x140]
push ecx
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x164]
push eax
mov eax, dword [esp + 0x50]
push 0x58
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x38]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x407f9f
lea edx, [esp + 0x18]
push edx
mov ecx, 0x18
lea esi, [esp + 0x164]
lea edi, [esp + 0x1c4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x164]
push eax
push ecx
lea edx, [esp + 0x1cc]
push edx
mov ecx, 0x4870d8
call fcn.004013f0
test eax, eax
je 0x407f9f
mov eax, dword [esp + 0x18]
mov ecx, 0x18
lea esi, [esp + 0x160]
lea edi, [esp + 0x1c0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c0]
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x407f9f
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x407f9f
xor edx, edx
mov dword [esp + 0xf5], edx
mov dword [esp + 0xf9], edx
mov dword [esp + 0xfd], edx
mov dword [esp + 0x101], edx
mov dword [esp + 0x105], edx
mov dword [esp + 0x109], edx
lea eax, [esp + 0xf4]
test eax, eax
mov dword [esp + 0x10d], edx
mov byte [esp + 0xf4], bl
mov dword [esp + 0x111], edx
je 0x407b50
mov ecx, 0xa
mov esi, str.SoftwareBaduGuaGua
lea edi, [esp + 0x300]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x35
lea edi, [esp + 0x32a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x30c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
stosw word es:[edi], ax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4079cf
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
push str.LoginGUID
push eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov dword [esp + 0x10], ebx
jmp 0x4079d5
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4079e0
sub eax, edx
cmp eax, 0x20
je 0x407a9c
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x407a84
movzx eax, byte [esp + 0xbf]
movzx ecx, byte [esp + 0xbe]
movzx edx, byte [esp + 0xbd]
push eax
movzx eax, byte [esp + 0xc0]
push ecx
movzx ecx, byte [esp + 0xc3]
push edx
movzx edx, byte [esp + 0xc6]
push eax
movzx eax, byte [esp + 0xc9]
push ecx
movzx ecx, byte [esp + 0xcc]
push edx
movzx edx, word [esp + 0xce]
push eax
movzx eax, word [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0xd0]
push edx
push eax
push ecx
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x124]
push 0x20
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x38
jmp 0x407a9c
push 0x20
lea eax, [esp + 0xf8]
push str.A86486387FF44994B1C3D4A68A09B18B
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push ebx
lea edx, [esp + 0x30c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407af4
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407ac8
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0xf8]
push eax
push 3
push ebx
push str.LoginGUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
push edx
jmp 0x407b4a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x304]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407b50
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407b20
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xf8]
push edx
push 3
push ebx
push str.LoginGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push 0x20
lea eax, [esp + 0xf8]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x164]
push eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x1cc]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x407f9f
mov edx, dword [esp + 0x18]
mov ecx, 0x18
lea esi, [esp + 0x160]
lea edi, [esp + 0x1c0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], edx
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x407f9f
xor eax, eax
mov dword [esp + 0x119], eax
mov dword [esp + 0x11d], eax
mov dword [esp + 0x121], eax
mov dword [esp + 0x125], eax
mov dword [esp + 0x129], eax
mov dword [esp + 0x12d], eax
lea ecx, [esp + 0x118]
test ecx, ecx
mov dword [esp + 0x131], eax
mov byte [esp + 0x118], bl
mov dword [esp + 0x135], eax
je 0x407e26
mov ecx, 0xa
mov esi, str.SoftwareBaduGuaGua
lea edi, [esp + 0x400]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x35
lea edi, [esp + 0x42a]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push edx
push 0x20019
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x40c]
push eax
push SysReAllocStringLen
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407caa
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x5c]
push eax
push ebx
push str.LoginGUID
push ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov dword [esp + 0x14], ebx
jmp 0x407cb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x118]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407cc0
sub eax, edx
cmp eax, 0x20
je 0x407d78
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x407d60
movzx ecx, byte [esp + 0xcf]
movzx edx, byte [esp + 0xce]
movzx eax, byte [esp + 0xcd]
push ecx
movzx ecx, byte [esp + 0xd0]
push edx
movzx edx, byte [esp + 0xd3]
push eax
movzx eax, byte [esp + 0xd6]
push ecx
movzx ecx, byte [esp + 0xd9]
push edx
movzx edx, byte [esp + 0xdc]
push eax
movzx eax, word [esp + 0xde]
push ecx
movzx ecx, word [esp + 0xe0]
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
lea eax, [esp + 0x148]
push 0x20
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x38
jmp 0x407d78
push 0x20
lea ecx, [esp + 0x11c]
push str.033EA43D0C95436792206E6FF8E4E343
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20006
push ebx
lea eax, [esp + 0x40c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407dd0
lea eax, [esp + 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407da4
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 3
push ebx
push str.LoginGUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
push eax
jmp 0x407e20
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x404]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407e26
lea eax, [esp + 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407df6
mov ecx, dword [esp + 0x14]
sub eax, edx
push eax
lea eax, [esp + 0x11c]
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
call esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
push 0x20
lea edx, [esp + 0x11c]
push edx
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x164]
push edx
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x1cc]
push edx
push 1
call dword [eax + 8]
mov esi, eax
lea eax, [esp + 0x28]
push eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x407f9f
mov ecx, 0x18
lea esi, [esp + 0x160]
lea edi, [esp + 0x1c0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x407f9f
xor ecx, ecx
mov dword [esp + 0xd1], ecx
mov dword [esp + 0xd5], ecx
mov dword [esp + 0xd9], ecx
mov dword [esp + 0xdd], ecx
mov dword [esp + 0xe1], ecx
mov dword [esp + 0xe5], ecx
lea edx, [esp + 0xd0]
test edx, edx
mov dword [esp + 0xe9], ecx
mov byte [esp + 0xd0], bl
mov dword [esp + 0xed], ecx
je 0x407f02
push 0x20
mov eax, edx
push str.EA4D2AEC3AED4a8fAAC17DCB23F12C4E
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0xd4]
push ecx
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x164]
push eax
push esi
lea eax, [esp + 0x1cc]
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x407f9f
mov edx, dword [esp + 0x20]
push edx
push 0x60
lea eax, [esp + 0x168]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, 0x60
jb 0x407f9f
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
inc word [esi + 4]
push 0x58
push ecx
mov ecx, 0x4870d8
call fcn.00401410
mov edi, dword [esi + 0x18]
add edi, eax
lea ecx, [esp + 0x4c]
mov dword [esi + 0x18], edi
call fcn.00406b90
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jne 0x407611
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx + 4]
mov eax, dword [ecx + 0x68]
cmp edx, eax
jne 0x4082ce
mov eax, ecx
mov dword [eax], 2
add eax, 0x1c
push str.ChatHall2010_2009_11_17_18:32:11
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
xor eax, eax
mov byte [esp + 0x228], bl
mov ecx, 0x17
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x228]
add esp, 8
test eax, eax
mov dword [esp + 0x2c], 0x60
je 0x4082ce
call fcn.0045bc00
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4082ce
xor ecx, ecx
mov dword [esp + 0xd1], ecx
mov dword [esp + 0xd5], ecx
mov dword [esp + 0xd9], ecx
mov dword [esp + 0xdd], ecx
mov dword [esp + 0xe1], ecx
mov dword [esp + 0xe5], ecx
lea edx, [esp + 0xd0]
test edx, edx
mov dword [esp + 0xe9], ecx
mov byte [esp + 0xd0], bl
mov dword [esp + 0xed], ecx
je 0x4081f1
xor eax, eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x99], ecx
mov dword [esp + 0x81], eax
mov dword [esp + 0x9d], ecx
mov dword [esp + 0x85], eax
mov dword [esp + 0xa1], ecx
mov dword [esp + 0xa5], ecx
mov dword [esp + 0x89], eax
xor edx, edx
mov dword [esp + 0x8d], eax
mov dword [esp + 0xa9], ecx
mov dword [esp + 0x69], edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], bl
mov dword [esp + 0x91], eax
mov byte [esp + 0x98], bl
mov byte [esp + 0x68], bl
mov dword [esp + 0x6d], edx
call fcn.00462480
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x51c], 2
call fcn.00464680
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00461270
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
call fcn.00461330
mov esi, 3
lea ecx, [esp + 0x76]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x408130
mov cl, byte [esp + eax + 0x74]
mov dl, byte [esp + eax + 0x98]
add cl, dl
mov byte [esp + eax + 0x74], cl
jmp 0x408143
cmp eax, 0x1c
jge 0x408143
mov dl, byte [esp + eax + 0x74]
mov cl, byte [esp + eax + 0x54]
add dl, cl
mov byte [esp + eax + 0x74], dl
cmp eax, 0x13
jge 0x40815b
mov cl, byte [esp + eax + 0x75]
mov dl, byte [esp + eax + 0x99]
add cl, dl
mov byte [esp + eax + 0x75], cl
jmp 0x40816e
cmp eax, 0x1b
jge 0x40816e
mov dl, byte [esp + eax + 0x75]
mov cl, byte [esp + eax + 0x55]
add dl, cl
mov byte [esp + eax + 0x75], dl
cmp eax, 0x12
jge 0x408186
mov cl, byte [esp + eax + 0x76]
mov dl, byte [esp + eax + 0x9a]
add cl, dl
mov byte [esp + eax + 0x76], cl
jmp 0x408199
cmp eax, 0x1a
jge 0x408199
mov dl, byte [esp + eax + 0x76]
mov cl, byte [esp + eax + 0x56]
add dl, cl
mov byte [esp + eax + 0x76], dl
lea ecx, [esp + eax + 0x76]
lea edx, [esi + ecx]
cmp edx, 0x14
jge 0x4081ae
mov dl, byte [esp + eax + 0x9b]
jmp 0x4081b7
cmp edx, 0x1c
jge 0x4081ba
mov dl, byte [esp + eax + 0x57]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x408118
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x78]
push 0x20
push ecx
call fcn.0045ba50
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x514], bl
call fcn.00462310
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0xd4]
push ecx
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x224]
push eax
mov eax, dword [esp + 0x2c]
push 0x60
push eax
push 1
call dword [edx + 8]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.0045b570
add esp, 4
cmp esi, ebx
je 0x4082ce
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x18
lea esi, [esp + 0x224]
lea edi, [esp + 0x2a4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x224]
push eax
push ecx
lea edx, [esp + 0x2ac]
push edx
mov ecx, 0x4870d8
call fcn.004013f0
test eax, eax
je 0x4082ce
lea ecx, [esp + 0x280]
call fcn.00421a70
mov esi, dword [esp + 0x20]
push ebx
push ebx
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
push esi
push 0x20
lea eax, [esp + 0x294]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x1c
cmp eax, 0x20
jne 0x4082ce
mov ecx, esi
push ecx
push 0x60
lea edx, [esp + 0x228]
push 1
push edx
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, 0x60
jb 0x4082ce
mov dword [esp + 0x50], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
mov esi, dword [esp + 0x54]
add esp, 4
cmp esi, ebx
jne 0x4082f4
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 ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x50c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x504]
call fcn.00436153
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4