Function at 0x4083a0
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 0x4501e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x500
mov eax, dword [0x46b378]
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 0x4578fc
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 0x40841f
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x40914e
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 0x408ded
add ecx, 0x18
cmp ecx, ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], 0x60
je 0x408ded
lea eax, [esp + 0x160]
test eax, eax
je 0x408ded
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x408ded
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 0x40867b
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.0044b9b0
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x51c], 1
call fcn.0044dbf0
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0044a7a0
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
call fcn.0044a860
mov esi, 3
lea ecx, [esp + 0x76]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x4085ba
mov cl, byte [esp + eax + 0x74]
mov dl, byte [esp + eax + 0x98]
add cl, dl
mov byte [esp + eax + 0x74], cl
jmp 0x4085cd
cmp eax, 0x1c
jge 0x4085cd
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 0x4085e5
mov cl, byte [esp + eax + 0x75]
mov dl, byte [esp + eax + 0x99]
add cl, dl
mov byte [esp + eax + 0x75], cl
jmp 0x4085f8
cmp eax, 0x1b
jge 0x4085f8
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 0x408610
mov cl, byte [esp + eax + 0x76]
mov dl, byte [esp + eax + 0x9a]
add cl, dl
mov byte [esp + eax + 0x76], cl
jmp 0x408623
cmp eax, 0x1a
jge 0x408623
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 0x408638
mov dl, byte [esp + eax + 0x9b]
jmp 0x408641
cmp edx, 0x1c
jge 0x408644
mov dl, byte [esp + eax + 0x57]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x4085a2
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x78]
push 0x20
push ecx
call fcn.004444c0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x514], bl
call fcn.0044b840
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0x140]
push ecx
mov ecx, eax
call dword [edx]
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 + 4]
lea ecx, [esp + 0x38]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x408ded
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, 0x46bfc8
call fcn.00401bb0
test eax, eax
je 0x408ded
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 0x408ded
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x408ded
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 0x4089a0
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 0x40881e
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 0x408824
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408830
sub eax, edx
cmp eax, 0x20
je 0x4088ec
lea edx, [esp + 0xb0]
push edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4088d4
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 0x4088ec
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 0x408944
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408918
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 0x40899a
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 0x4089a0
lea eax, [esp + 0xf4]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408970
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]
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 + 4]
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x408ded
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.00444670
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x408ded
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 0x408c76
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 0x408af9
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 0x408aff
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x118]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408b10
sub eax, edx
cmp eax, 0x20
je 0x408bc8
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x408bb0
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 0x408bc8
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 0x408c20
lea eax, [esp + 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408bf4
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 0x408c70
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 0x408c76
lea eax, [esp + 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408c46
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]
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 + 4]
mov esi, eax
lea eax, [esp + 0x28]
push eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x408ded
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.00444670
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x408ded
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 0x408d51
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]
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 + 4]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x408ded
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 0x408ded
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
inc word [esi + 4]
push 0x58
push ecx
mov ecx, 0x46bfc8
call fcn.00401bd0
mov edi, dword [esi + 0x18]
add edi, eax
lea ecx, [esp + 0x4c]
mov dword [esi + 0x18], edi
call fcn.004079e0
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jne 0x408461
mov ecx, dword [esp + 0x24]
movzx edx, word [ecx + 4]
mov eax, dword [ecx + 0x68]
cmp edx, eax
jne 0x40911b
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 0x40911b
call fcn.00444670
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x40911b
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 0x40903f
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.0044b9b0
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x51c], 2
call fcn.0044dbf0
push ebx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x44]
call fcn.0044a7a0
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x40]
call fcn.0044a860
mov esi, 3
lea ecx, [esp + 0x76]
xor eax, eax
sub esi, ecx
cmp eax, 0x14
jge 0x408f7e
mov cl, byte [esp + eax + 0x74]
mov dl, byte [esp + eax + 0x98]
add cl, dl
mov byte [esp + eax + 0x74], cl
jmp 0x408f91
cmp eax, 0x1c
jge 0x408f91
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 0x408fa9
mov cl, byte [esp + eax + 0x75]
mov dl, byte [esp + eax + 0x99]
add cl, dl
mov byte [esp + eax + 0x75], cl
jmp 0x408fbc
cmp eax, 0x1b
jge 0x408fbc
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 0x408fd4
mov cl, byte [esp + eax + 0x76]
mov dl, byte [esp + eax + 0x9a]
add cl, dl
mov byte [esp + eax + 0x76], cl
jmp 0x408fe7
cmp eax, 0x1a
jge 0x408fe7
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 0x408ffc
mov dl, byte [esp + eax + 0x9b]
jmp 0x409005
cmp edx, 0x1c
jge 0x409008
mov dl, byte [esp + eax + 0x57]
add byte [ecx + 1], dl
add eax, 4
cmp eax, 0x20
jl 0x408f66
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x78]
push 0x20
push ecx
call fcn.004444c0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x514], bl
call fcn.0044b840
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push 0x20
lea ecx, [esp + 0xd4]
push ecx
mov ecx, eax
call dword [edx]
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 + 4]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
call fcn.00443fe0
add esp, 4
cmp esi, ebx
je 0x40911b
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, 0x46bfc8
call fcn.00401bb0
test eax, eax
je 0x40911b
lea ecx, [esp + 0x280]
call fcn.0041ebf0
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 0x40911b
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 0x40911b
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 0x409141
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.004225d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4