Function at 0x4062a0
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Get session user name
Query or enumerate registry value
Resolve function by parsing pe exports
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x416c36
push eax
mov eax, 0x2e1c
mov dword fs:[0], esp
call fcn.0040f220
mov eax, dword [esp + 0x2e38]
push ebx
and eax, 0xff
push ebp
add eax, 0xfffffff3
push esi
cmp eax, 0x81
push edi
ja case.default.0x406743
xor ecx, ecx
mov cl, byte [eax + 0x407fc0]
jmp dword [ecx*4 + 0x407fac]
mov esi, dword [esp + 0x2e4c]
mov eax, dword [esi + 0xc]
cmp eax, 0x2001
ja 0x4064fc
je 0x4064d1
sub eax, 0x1000
je 0x406374
dec eax
je 0x406352
sub eax, 0xfff
jne case.default.0x406743
mov eax, dword [0x41c194]
test eax, eax
jne case.default.0x406743
mov edx, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
push 0x11
mov eax, dword [edx]
mov edx, dword [esp + 0x2e40]
mov ecx, dword [eax]
push ecx
push edx
call sub.REDHOOKS.dll_Ordinal_1
mov dword [0x41c194], 1
jmp case.default.0x406743
mov eax, dword [0x41d17c]
test eax, eax
je case.default.0x406743
mov eax, dword [esp + 0x2e3c]
push eax
call fcn.00403200
add esp, 4
jmp case.default.0x406743
mov eax, dword [0x41d1a0]
xor ebx, ebx
cmp eax, ebx
jne case.default.0x406743
mov eax, dword [esi + 0x10]
mov edi, 0x50
cmp eax, 0x64
jne 0x4063a9
push ebx
push str.UseJPEGCompression
call sub.REDCOMM.dll_Ordinal_16
push ebx
push str.UseConvertTo16bit
call sub.REDCOMM.dll_Ordinal_16
push edi
jmp 0x4063fe
cmp eax, 0x5f
jne 0x4063c8
push ebx
push str.UseJPEGCompression
call sub.REDCOMM.dll_Ordinal_16
push 1
push str.UseConvertTo16bit
call sub.REDCOMM.dll_Ordinal_16
push edi
jmp 0x4063fe
push 1
push str.UseJPEGCompression
call sub.REDCOMM.dll_Ordinal_16
push ebx
push str.UseConvertTo16bit
call sub.REDCOMM.dll_Ordinal_16
mov eax, dword [esi + 0x10]
cmp eax, 5
jl 0x4063f1
cmp eax, 0x5a
jge 0x4063f8
cmp eax, 5
jge 0x4063fd
mov eax, 5
jmp 0x4063fd
mov eax, 0x5a
push eax
push str.JPEGQuality
call sub.REDCOMM.dll_Ordinal_17
mov eax, dword [0x41d21c]
cmp eax, ebx
je 0x4064bb
cmp dword [0x41d17c], ebx
je 0x4064bb
mov ecx, dword [esi + 0x10]
cmp ecx, 0x64
jne 0x406449
mov dword [eax + 0xa0], ebx
mov ecx, dword [0x41d21c]
mov dword [ecx + 0xa8], ebx
mov edx, dword [0x41d21c]
mov dword [edx + 0xb0], edi
jmp 0x4064b1
cmp ecx, 0x5f
jne 0x406471
mov dword [eax + 0xa0], ebx
mov eax, dword [0x41d21c]
mov dword [eax + 0xa8], 1
mov ecx, dword [0x41d21c]
mov dword [ecx + 0xb0], edi
jmp 0x4064b1
mov dword [eax + 0xa0], 1
mov edx, dword [0x41d21c]
mov dword [edx + 0xa8], ebx
mov eax, dword [esi + 0x10]
cmp eax, 5
jl 0x406499
cmp eax, 0x5a
jge 0x4064a0
cmp eax, 5
jge 0x4064a5
mov eax, 5
jmp 0x4064a5
mov eax, 0x5a
mov ecx, dword [0x41d21c]
mov dword [ecx + 0xb0], eax
mov dword [0x41d24c], 6
mov edx, dword [esp + 0x2e3c]
push ebx
push edx
call fcn.00402fd0
add esp, 8
jmp case.default.0x406743
mov eax, dword [0x41c194]
test eax, eax
je case.default.0x406743
mov eax, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.REDHOOKS.dll_Ordinal_2
mov dword [0x41c194], 0
jmp case.default.0x406743
sub eax, 0x2002
je 0x4066b7
sub eax, 2
jne case.default.0x406743
mov ecx, dword [0x41d220]
mov eax, dword [esi + 0x10]
xor edx, edx
cmp ecx, edx
je 0x4065e6
cmp dword [0x41c214], edx
je 0x4065e6
cmp eax, 0x64
jne 0x406564
mov dword [ecx + 0xa0], edx
mov eax, dword [0x41d220]
mov dword [eax + 0xa8], edx
mov ecx, dword [0x41d220]
mov dword [ecx + 0xb0], 0x50
mov dword [0x41d24c], 7
jmp case.default.0x406743
cmp eax, 0x5f
jne 0x40659d
mov dword [ecx + 0xa0], edx
mov edx, dword [0x41d220]
mov dword [edx + 0xa8], 1
mov eax, dword [0x41d220]
mov dword [eax + 0xb0], 0x50
mov dword [0x41d24c], 7
jmp case.default.0x406743
mov dword [ecx + 0xa0], 1
mov ecx, dword [0x41d220]
cmp eax, 5
mov dword [ecx + 0xa8], edx
jb 0x4065bf
cmp eax, 0x5a
jae 0x4065c6
jmp 0x4065cb
mov eax, 5
jmp 0x4065cb
mov eax, 0x5a
mov edx, dword [0x41d220]
mov dword [edx + 0xb0], eax
mov dword [0x41d24c], 7
jmp case.default.0x406743
mov ecx, dword [0x41d21c]
cmp ecx, edx
je case.default.0x406743
cmp dword [0x41d17c], edx
je case.default.0x406743
cmp eax, 0x64
jne 0x406635
mov dword [ecx + 0xa0], edx
mov eax, dword [0x41d21c]
mov dword [eax + 0xa8], edx
mov ecx, dword [0x41d21c]
mov dword [ecx + 0xb0], 0x50
mov dword [0x41d24c], 6
jmp case.default.0x406743
cmp eax, 0x5f
jne 0x40666e
mov dword [ecx + 0xa0], edx
mov edx, dword [0x41d21c]
mov dword [edx + 0xa8], 1
mov eax, dword [0x41d21c]
mov dword [eax + 0xb0], 0x50
mov dword [0x41d24c], 6
jmp case.default.0x406743
mov dword [ecx + 0xa0], 1
mov ecx, dword [0x41d21c]
cmp eax, 5
mov dword [ecx + 0xa8], edx
jb 0x406690
cmp eax, 0x5a
jae 0x406697
jmp 0x40669c
mov eax, 5
jmp 0x40669c
mov eax, 0x5a
mov edx, dword [0x41d21c]
mov dword [edx + 0xb0], eax
mov dword [0x41d24c], 6
jmp case.default.0x406743
sub esp, 0x1c
mov ecx, 7
lea esi, [esp + 0x2c]
mov edi, esp
mov dword [esp + 0x2c], 3
rep movsd dword es:[edi], dword [esi]
call sub.REDCOMM.dll_Ordinal_146
jmp case.default.0x406743
mov edx, dword [esp + 0x2e4c]
cmp dword [edx + 0xc], 1
jne case.default.0x406743
mov ecx, 0x168
xor eax, eax
lea edi, [esp + 0x2bc]
rep stosd dword es:[edi], eax
mov word [esp + 0x2be], ax
mov dword [esp + 0x2c4], eax
mov eax, dword [edx + 0x10]
mov byte [esp + 0x2bc], 2
mov dword [esp + 0x2cc], eax
dec eax
cmp eax, 6
mov byte [esp + 0x2bd], 0x88
mov dword [esp + 0x2c0], 0x14
mov dword [esp + 0x2c8], 2
ja case.default.0x406743
jmp dword [eax*4 + 0x408044]
lea eax, [esp + 0xa64]
push eax
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_General_struct__SYSTEM_SETTINGS_GENERAL__]
mov ecx, 0xdb
lea esi, [esp + 0xa64]
lea edi, [esp + 0x2d0]
push 1
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2e40]
add eax, 0x36c
push ecx
mov dword [esp + 0x2c8], eax
push eax
mov eax, dword [esp + 0x2e4c]
lea edx, [esp + 0x2c8]
push edx
push eax
call sub.REDCOMM.dll_Ordinal_33
jmp case.default.0x406743
lea ecx, [esp + 0xdd4]
push ecx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Disk_struct__SYSTEM_SETTINGS_DISK__]
mov edx, dword [esp + 0x2e3c]
mov ecx, 0x120
lea esi, [esp + 0xdd4]
lea edi, [esp + 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2e40]
add eax, 0x480
push 1
push edx
mov dword [esp + 0x2c8], eax
push eax
lea eax, [esp + 0x2c8]
push eax
push ecx
call sub.REDCOMM.dll_Ordinal_33
jmp case.default.0x406743
lea edx, [esp + 0x1254]
push str.NetClient
push edx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Net_struct__SYSTEM_SETTINGS_NET___char__]
mov ecx, 0x155
lea esi, [esp + 0x1254]
lea edi, [esp + 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c0]
add eax, 0x554
mov ecx, dword [esp + 0x2e3c]
push 1
push ecx
mov dword [esp + 0x2c8], eax
push eax
mov eax, dword [esp + 0x2e4c]
lea edx, [esp + 0x2c8]
push edx
push eax
call sub.REDCOMM.dll_Ordinal_33
jmp case.default.0x406743
lea ecx, [esp + 0x17a8]
push 0x41a954
push ecx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Net_struct__SYSTEM_SETTINGS_NET___char__]
mov edx, dword [esp + 0x2e3c]
mov ecx, 0x155
lea esi, [esp + 0x17a8]
lea edi, [esp + 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2e40]
add eax, 0x554
push 1
push edx
mov dword [esp + 0x2c8], eax
push eax
lea eax, [esp + 0x2c8]
push eax
push ecx
call sub.REDCOMM.dll_Ordinal_33
jmp case.default.0x406743
lea edx, [esp + 0x1cfc]
push str.NetService
push edx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Net_struct__SYSTEM_SETTINGS_NET___char__]
mov ecx, 0x155
lea esi, [esp + 0x1cfc]
jmp 0x40681f
lea ecx, [esp + 0x2250]
push str.NetTrans
push ecx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Net_struct__SYSTEM_SETTINGS_NET___char__]
mov edx, dword [esp + 0x2e3c]
mov ecx, 0x155
lea esi, [esp + 0x2250]
lea edi, [esp + 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2e40]
add eax, 0x554
push 1
push edx
mov dword [esp + 0x2c8], eax
push eax
lea eax, [esp + 0x2c8]
push eax
push ecx
call sub.REDCOMM.dll_Ordinal_33
jmp case.default.0x406743
lea edx, [esp + 0x27a4]
push edx
call dword [sym.imp.RSCLASS.dll_int___stdcall_GetSystemSettings_Settings_struct__SYSTEM_SETTINGS_SETTINGS__]
mov ecx, 0x87
lea esi, [esp + 0x27a4]
lea edi, [esp + 0x2d0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c0]
add eax, 0x21c
jmp 0x406834
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x9c]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x41c214]
mov byte [esp + 0x9c], 2
cmp eax, ebp
mov byte [esp + 0x9d], 6
mov word [esp + 0x9e], bp
mov dword [esp + 0xa0], 0x120
mov dword [esp + 0xa4], ebp
jne 0x406f7d
cmp dword [0x41c200], 0xffffffff
jne 0x406f7d
cmp dword [0x41d17c], ebp
je 0x4069e3
mov byte [esp + 0xa8], 4
jmp 0x406f85
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x40], ecx
lea edi, [esp + 0x1bc]
mov dword [esp + 0x44], ecx
xor edx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], ecx
mov ecx, 0x20
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
mov dword [esp + 0x14], edx
push eax
push 1
push ebp
mov dword [esp + 0x24], edx
push str..rds
push Ordinal_1
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406cf8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1bc]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x58]
push edx
push eax
push ebp
push str.00012
push ecx
mov dword [esp + 0x44], 0x81
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406cf8
cmp dword [esp + 0x54], 3
jne 0x406cf8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x1bc]
push edx
call ebx
cmp eax, 0x80
jl 0x406cf8
movsx eax, byte [esp + 0x237]
movsx ecx, byte [esp + 0x23a]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x2eb]
cmp eax, ebp
mov dword [esp + 0x2c], eax
jl 0x406cf8
cmp eax, 0xf
jg 0x406cf8
cmp eax, ebp
mov dword [esp + 0x58], ebp
jle 0x406ccc
lea esi, [esp + 0x1bf]
mov cl, byte [esi]
mov al, byte [esi - 3]
movsx edi, byte [esi + 3]
movsx ecx, cl
sub edi, 9
sub ecx, 9
xor edx, edx
imul edi, ecx
mov dword [esp + 0x34], edx
xor ebp, ebp
mov dword [esp + 0x38], edx
movsx edx, al
sub edx, 9
imul edi, edx
cmp edi, ebp
jbe 0x406cf8
cmp byte [esi - 2], 0x41
jl 0x406b1d
lea eax, [esp + 0x34]
push eax
call ebx
mov cl, byte [esi - 2]
mov byte [esp + eax + 0x34], cl
cmp byte [esi - 1], 0x41
jl 0x406b31
lea edx, [esp + 0x34]
push edx
call ebx
mov cl, byte [esi - 1]
mov byte [esp + eax + 0x34], cl
cmp byte [esi + 1], 0x41
jl 0x406b45
lea edx, [esp + 0x34]
push edx
call ebx
mov cl, byte [esi + 1]
mov byte [esp + eax + 0x34], cl
cmp byte [esi + 2], 0x41
jl 0x406b59
lea edx, [esp + 0x34]
push edx
call ebx
mov cl, byte [esi + 2]
mov byte [esp + eax + 0x34], cl
cmp byte [esi + 4], 0x41
jl 0x406b6d
lea edx, [esp + 0x34]
push edx
call ebx
mov cl, byte [esi + 4]
mov byte [esp + eax + 0x34], cl
lea edx, [esp + 0x34]
xor ebp, ebp
push edx
call ebx
cmp eax, 1
jl 0x406b97
lea eax, [esp + 0x34]
push eax
call ebx
mov al, byte [esp + eax + 0x33]
cmp al, 0x61
movsx eax, al
jl 0x406b92
sub eax, 0x47
jmp 0x406b95
sub eax, 0x41
mov ebp, eax
lea ecx, [esp + 0x34]
push ecx
call ebx
cmp eax, 2
jl 0x406bd4
lea edx, [esp + 0x34]
push edx
call ebx
lea ecx, [esp + 0x34]
sub ecx, 2
mov al, byte [eax + ecx]
cmp al, 0x61
movsx eax, al
jl 0x406bc6
sub eax, 0x47
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
jmp 0x406bcf
sub eax, 0x41
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*4]
shl eax, 2
add ebp, eax
lea edx, [esp + 0x34]
push edx
call ebx
cmp eax, 3
jl 0x406c23
lea eax, [esp + 0x34]
push eax
call ebx
lea ecx, [esp + 0x34]
sub ecx, 3
mov al, byte [eax + ecx]
cmp al, 0x61
movsx eax, al
jl 0x406c0c
sub eax, 0x47
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8]
jmp 0x406c1e
sub eax, 0x41
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
shl eax, 4
add ebp, eax
lea edx, [esp + 0x34]
push edx
call ebx
cmp eax, 4
jl 0x406c63
lea eax, [esp + 0x34]
push eax
call ebx
lea ecx, [esp + 0x34]
sub ecx, 4
mov al, byte [eax + ecx]
cmp al, 0x61
movsx eax, al
jl 0x406c4c
sub eax, 0x47
jmp 0x406c4f
sub eax, 0x41
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*4]
shl eax, 6
add ebp, eax
lea edx, [esp + 0x34]
push edx
call ebx
cmp eax, 5
jl 0x406caa
lea eax, [esp + 0x34]
push eax
call ebx
lea ecx, [esp + 0x34]
sub ecx, 5
mov al, byte [eax + ecx]
cmp al, 0x61
movsx ecx, al
jl 0x406c8c
sub ecx, 0x47
jmp 0x406c8f
sub ecx, 0x41
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 4
add eax, ecx
shl eax, 8
add ebp, eax
mov eax, ebp
xor edx, edx
div edi
mov ecx, dword [esp + 0x58]
add esi, 8
inc ecx
mov dword [esp + 0x58], ecx
mov byte [esp + ecx + 0xf], al
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jl 0x406ad7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], edx
mov dx, word [esp + 0x1c]
mov dword [esp + 0x44], eax
mov al, byte [esp + 0x1e]
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], dx
mov byte [esp + 0x4e], al
xor ebp, ebp
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x406d07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x2e4c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, 1
cmp dword [esi + 0x10], ebx
jne 0x406d3a
lea ecx, [esi + 0x14]
lea edx, [esp + 0x40]
push ecx
push edx
call edi
test eax, eax
je 0x406d3a
mov byte [esp + 0xa8], 2
jmp 0x406f8a
cmp dword [esi + 0x10], 2
jne 0x406d64
mov al, byte [esp + 0x40]
test al, al
je 0x406d64
lea eax, [esi + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
call edi
test eax, eax
je 0x406d64
mov byte [esp + 0xa8], 3
jmp 0x406f8a
mov edx, dword [0x41d220]
mov dword [0x41c214], ebx
cmp edx, ebp
mov dword [0x41d24c], 7
jne 0x406db9
push 0x580
call fcn.0040e920
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, ebp
mov dword [esp + 0x2e34], ebp
je 0x406da4
mov ecx, eax
call dword [sym.imp.REDCOMM.dll_public:_void___thiscall_CDibCapture::constructor_void_]
jmp 0x406da6
xor eax, eax
mov edx, eax
mov dword [esp + 0x2e34], 0xffffffff
mov dword [0x41d220], edx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x70]
push ebp
rep stosd dword es:[edi], eax
mov eax, dword [0x41c1ac]
mov edi, dword [esp + 0x2e44]
mov ecx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], 0x41c214
mov edx, dword [ecx + 0x40]
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], 0x41d24c
call sub.REDCOMM.dll_Ordinal_109
test eax, eax
jne 0x406e27
mov byte [esp + 0xa8], 5
jmp 0x406f8a
mov eax, dword [esi + 0x34]
cmp eax, 0x64
jne 0x406e58
mov ecx, dword [0x41d220]
mov dword [ecx + 0xa0], ebp
mov edx, dword [0x41d220]
mov dword [edx + 0xa8], ebp
mov eax, dword [0x41d220]
mov dword [eax + 0xb0], 0x50
jmp 0x406ec2
mov ecx, dword [0x41d220]
cmp eax, 0x5f
jne 0x406e86
mov dword [ecx + 0xa0], ebp
mov edx, dword [0x41d220]
mov dword [edx + 0xa8], ebx
mov eax, dword [0x41d220]
mov dword [eax + 0xb0], 0x50
jmp 0x406ec2
mov dword [ecx + 0xa0], ebx
mov edx, dword [0x41d220]
mov dword [edx + 0xa8], ebp
mov eax, dword [esi + 0x34]
cmp eax, 5
jl 0x406eaa
cmp eax, 0x5a
jge 0x406eb1
cmp eax, 5
jge 0x406eb6
mov eax, 5
jmp 0x406eb6
mov eax, 0x5a
mov ecx, dword [0x41d220]
mov dword [ecx + 0xb0], eax
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
lea eax, [esp + 0xa9]
add edx, 0xc42
mov byte [esp + 0xa8], 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xb9]
push ecx
push edx
mov dword [esp + 0x44], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [esp + 0x2e44]
mov dword [0x41c200], edi
mov dword [0x41c214], ebx
mov eax, dword [esi + 0x24]
push 0x11
push 0x11
mov dword [0x41c1e8], eax
mov dword [0x41a348], ecx
call fcn.00404580
push 0x11
push 0x10
call fcn.00404580
push 0x11
push 0x13
call fcn.00404580
mov eax, dword [0x41c1e8]
add esp, 0x18
cmp eax, ebp
je 0x406f8a
mov dx, word [esi + 0xc]
push edx
call fcn.004045c0
mov eax, dword [esi + 0x2c]
add esp, 4
cmp eax, ebp
je 0x406f8a
mov eax, dword [sym.imp.RSCLASS.dll_struct__GLOBALVAR__gpGlobalVar]
push 0x11
mov ecx, dword [eax]
mov eax, dword [esp + 0x2e40]
mov edx, dword [ecx]
push edx
push eax
call sub.REDHOOKS.dll_Ordinal_1
mov dword [0x41c194], ebx
jmp 0x406f8a
mov byte [esp + 0xa8], 0
mov ebx, 1
mov ecx, dword [esp + 0x2e3c]
mov edx, dword [esp + 0xa0]
push ebx
push ecx
mov ecx, dword [esp + 0x2e48]
lea eax, [esp + 0xa4]
push edx
push eax
push ecx
jmp 0x407acb
mov ebp, dword [esp + 0x2e4c]
mov eax, dword [ebp + 0xc]
dec eax
cmp eax, 8
ja case.default.0x406743
jmp dword [eax*4 + 0x408060]
mov ecx, 0x41c188
call dword [sym.imp.RSCLASS.dll_public_virtual:_struct__FILE_UPLOAD_INFO____thiscall_CFileUploadInfoListing::NewNode_void_]
xor ecx, ecx
cmp eax, ecx
je 0x407ad8
xor edx, edx
push 1
mov dword [esp + 0x14], edx
mov word [esp + 0x16], cx
mov dword [esp + 0x18], edx
mov byte [esp + 0x14], 2
mov dword [esp + 0x1c], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x15], 0x8e
mov dword [esp + 0x24], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2e40]
mov dword [esp + 0x18], 0x14
push eax
mov dword [esp + 0x24], 6
push 0x14
lea ecx, [esp + 0x1c]
jmp 0x407ac2
mov eax, dword [ebp + 0x10]
mov ecx, 0x41c188
push eax
call dword [sym.imp.RSCLASS.dll_public_virtual:_int___thiscall_CFileUploadInfoListing::DeleteNode_struct__FILE_UPLOAD_INFO__]
jmp case.default.0x406743
mov esi, dword [ebp + 0x10]
mov ecx, 0x41c188
push esi
call dword [sym.imp.RSCLASS.dll_public_virtual:_int___thiscall_CFileUploadInfoListing::IsANodePointer_void__]
test eax, eax
je 0x407f93
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x407079
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0xffffffff
movsx eax, byte [ebp + 0x23c]
add eax, 0xffffffbf
cmp eax, 0x13
ja case.0x407094.69
xor ecx, ecx
mov cl, byte [eax + 0x408098]
jmp dword [ecx*4 + 0x408084]
push 1
push str.AcceptFileUpload
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
jne 0x407100
xor edx, edx
mov ecx, dword [esp + 0x2e3c]
mov dword [esp + 0x10], edx
mov word [esp + 0x12], ax
mov dword [esp + 0x14], edx
push 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push ecx
mov byte [esp + 0x18], 2
mov byte [esp + 0x19], 0x8e
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], eax
push 0x14
lea edx, [esp + 0x1c]
jmp 0x40752b
lea eax, [esi + 4]
push eax
call fcn.0040e6ee
mov ecx, dword [ebp + 0x124]
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], ecx
mov edx, dword [ebp + 0x18]
mov dword [esi + 0x118], edx
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov cl, byte [ebp + 0x23c]
mov byte [esi + 0x11c], cl
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa0]
add esp, 4
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x9c]
push edx
push eax
mov ebx, 0x104
push 0
push str.LocalSavingDirectory
mov dword [esp + 0x4c], ebx
call sub.REDCOMM.dll_Ordinal_25
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x85c]
lea edx, [esp + 0x85c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], ebx
push ecx
push edx
push eax
push str.LocalSavingDirectoryForClass
call sub.REDCOMM.dll_Ordinal_25
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x85c]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jle 0x4071e1
lea ecx, [esp + 0x85c]
push ecx
call ebx
test eax, eax
je 0x4071e1
lea edx, [esp + 0x85c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4071e1
lea eax, [esp + 0x85c]
lea ebx, [esi + 8]
push eax
jmp 0x40721a
lea ecx, [esp + 0x9c]
push ecx
call edi
test eax, eax
jle 0x40722d
lea edx, [esp + 0x9c]
push edx
call ebx
test eax, eax
je 0x40722d
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40722d
lea ecx, [esp + 0x9c]
lea ebx, [esi + 8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call edi
cmp byte [eax + esi + 7], 0x5c
je 0x40727b
jmp 0x40726f
mov edx, dword [0x41c1f0]
lea ebx, [esi + 8]
push 0x104
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40725a
push str.Upload
push 0x5c
push ebx
call fcn.0040e650
add esp, 8
push eax
jmp 0x407260
push str.C:Upload
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41a6d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esi + 4]
push eax
call fcn.0040f0be
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x1cc]
push str._04d__02d__02d
push ecx
call fcn.0040f06c
add esp, 0x18
lea edx, [esp + 0x1bc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.RSpider.exe
call sub.REDCOMM.dll_Ordinal_121
test eax, eax
je 0x407396
push 0
push str.rSPYMainWndClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov edx, eax
test edx, edx
je 0x407396
mov edi, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
mov ecx, 0x41
xor eax, eax
add edi, 0x1166
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2e44]
mov ecx, dword [esp + 0x2e3c]
push eax
mov eax, dword [0x41c1a4]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x30]
push ecx
call fcn.0040e6ee
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
lea edx, [esp + 0x58]
push edx
call fcn.0040e6ee
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
sub eax, edx
add esp, 4
cmp eax, 3
jge 0x407396
push 0
call edi
mov ecx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
mov al, byte [ecx + 0x1166]
test al, al
je 0x407331
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41a6d0
push ebx
call edi
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
add edx, 0x1166
push edx
push ebx
call edi
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
mov ecx, 0x41
xor eax, eax
lea edi, [edx + 0x1166]
rep stosd dword es:[edi], eax
jmp 0x4073ae
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41a8b4
push ebx
call edi
lea eax, [ebp + 0x22c]
push eax
push ebx
call edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41a6d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x128]
push 0x5c
push eax
mov dword [esp + 0x38], eax
call fcn.0040efb0
mov edi, eax
add esp, 8
test edi, edi
je 0x40741a
mov ecx, dword [esp + 0x30]
mov byte [edi], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41a6d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [edi + 1]
push 0x5c
push eax
mov dword [esp + 0x38], eax
call fcn.0040efb0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4073de
mov edx, dword [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10c], eax
jne case.0x407094.69
push ebx
xor esi, esi
push 1
push esi
call sub.REDCOMM.dll_Ordinal_22
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x2e3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 1
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x24], eax
push 0x14
mov dword [esp + 0x2c], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2e4c]
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], si
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xd
call sub.REDCOMM.dll_Ordinal_33
xor eax, eax
jmp 0x407f93
xor edi, edi
push edi
push str.RefuseReceiveTransferedFile
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
je 0x407544
xor edx, edx
mov ecx, dword [esp + 0x2e3c]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push 1
mov dword [esp + 0x1c], edx
push ecx
mov dword [esp + 0x24], edx
mov byte [esp + 0x18], 2
mov dword [esp + 0x28], edx
mov byte [esp + 0x19], 0x8e
mov word [esp + 0x1a], di
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], eax
push 0x14
lea edx, [esp + 0x1c]
mov eax, dword [esp + 0x2e4c]
push edx
push eax
call sub.REDCOMM.dll_Ordinal_33
neg eax
sbb eax, eax
neg eax
jmp 0x407f93
lea ecx, [esi + 4]
push ecx
call fcn.0040e6ee
mov edx, dword [ebp + 0x124]
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edx
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x118], eax
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [esi], ecx
mov dl, byte [ebp + 0x23c]
push 1
push str.FileRunDirectly
mov byte [esi + 0x11c], dl
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
jne 0x4075b4
push str.upgrade.exe
lea eax, [ebp + 0x128]
push 0x5c
push eax
call fcn.0040e650
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4075b4
mov dword [esi + 0x118], edi
mov eax, dword [ebp + 0x1c]
lea edi, [esi + 8]
cmp eax, 2
jne 0x4075cc
lea ecx, [ebp + 0x20]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4075d8
push 0x104
push edi
push eax
call sub.REDCOMM.dll_Ordinal_165
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
cmp byte [eax + esi + 7], 0x5c
jne 0x4075f0
push edi
call ebx
mov byte [eax + esi + 7], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
call ebx
cmp byte [eax + esi + 7], 0x5c
je 0x40760f
push 0x41a6d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x128]
push 0x5c
push eax
mov dword [esp + 0x38], eax
call fcn.0040efb0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x407666
mov edx, dword [esp + 0x30]
mov byte [ebx], 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41a6d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebx + 1]
push 0x5c
push eax
mov dword [esp + 0x38], eax
call fcn.0040efb0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40762a
mov eax, dword [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10c], eax
jne case.0x407094.69
push edi
xor esi, esi
push 1
push esi
call sub.REDCOMM.dll_Ordinal_22
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2e3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push 1
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x24], ecx
push 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2e4c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], si
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xd
call sub.REDCOMM.dll_Ordinal_33
xor eax, eax
jmp 0x407f93
lea eax, [esi + 4]
push eax
call fcn.0040e6ee
mov eax, dword [ebp + 0x124]
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], eax
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x118], ecx
mov edx, dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esi], edx
mov al, byte [ebp + 0x23c]
add esp, 4
mov byte [esi + 0x11c], al
mov ecx, dword [ebp + 0x348]
lea edx, [ebp + 0x22c]
lea eax, [esi + 0x230]
push edx
push eax
mov dword [esi + 0x22c], ecx
call ebx
lea ecx, [ebp + 0x23d]
lea edx, [esi + 0x11d]
push ecx
push edx
call ebx
mov eax, dword [0x41c1f0]
lea edi, [esi + 8]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4077b0
push str.ExamPaper
push 0x5c
push edi
call fcn.0040e650
add esp, 8
push eax
jmp 0x4077b6
push str.C:ExamPaper
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41a6d0
push edi
call ebx
lea eax, [esi + 4]
push eax
call fcn.0040f0be
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x1cc]
push str._04d__02d__02d
push ecx
call fcn.0040f06c
add esp, 0x18
lea edx, [esp + 0x1bc]
push edx
push edi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41a6d0
push edi
call ebx
lea eax, [ebp + 0x128]
push eax
push edi
call ebx
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x10c], eax
jne case.0x407094.69
push edi
xor esi, esi
push 1
push esi
call sub.REDCOMM.dll_Ordinal_22
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2e3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push 1
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x24], ecx
push 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2e4c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], si
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xd
call sub.REDCOMM.dll_Ordinal_33
xor eax, eax
jmp 0x407f93
push 0x41d288
call fcn.0040e6ee
mov eax, dword [0x41d288]
mov edx, dword [0x41d284]
sub eax, edx
add esp, 4
cmp eax, 3
jg 0x40795c
mov eax, dword [0x41d280]
xor ebx, ebx
cmp eax, ebx
je 0x40795e
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x2e3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
push 1
mov dword [esp + 0x1c], ecx
push eax
mov dword [esp + 0x24], ecx
push 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2e4c]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], bx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xb
call sub.REDCOMM.dll_Ordinal_33
neg eax
sbb eax, eax
neg eax
jmp 0x407f93
xor ebx, ebx
push 0x41d284
mov dword [0x41d280], 1
call fcn.0040e6ee
lea eax, [esi + 4]
push eax
call fcn.0040e6ee
mov ecx, dword [ebp + 0x124]
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ecx
mov edx, dword [ebp + 0x18]
mov dword [esi + 0x118], edx
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov cl, byte [ebp + 0x23c]
add esp, 8
lea eax, [ebp + 0x23d]
mov byte [esi + 0x11c], cl
mov edx, dword [ebp + 0x344]
lea edi, [esi + 0x11d]
push eax
push edi
mov dword [esi + 0x224], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x228]
cmp eax, ebx
je 0x4079e3
push eax
call fcn.0040e677
add esp, 4
mov dword [esi + 0x228], ebx
mov ecx, dword [esi + 0x224]
push ecx
push edi
call fcn.004061d0
add esp, 8
test eax, eax
jne case.0x407094.69
xor edx, edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x2e3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push 1
mov dword [esp + 0x1c], edx
push ecx
mov dword [esp + 0x24], edx
push 0x14
mov dword [esp + 0x2c], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2e4c]
lea edx, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], bx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xc
call sub.REDCOMM.dll_Ordinal_33
test eax, eax
je 0x407f93
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x41d280], ebx
jmp case.default.0x406743
xor ecx, ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
xor eax, eax
mov dword [esp + 0x44], ecx
mov word [esp + 0x42], ax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2e3c]
mov dword [esp + 0x4c], ecx
push 1
mov dword [esp + 0x54], ecx
push eax
mov byte [esp + 0x48], 2
mov byte [esp + 0x49], 0x8e
mov dword [esp + 0x4c], 0x14
mov dword [esp + 0x54], 8
mov dword [esp + 0x58], edx
push 0x14
lea ecx, [esp + 0x4c]
mov edx, dword [esp + 0x2e4c]
push ecx
push edx
call sub.REDCOMM.dll_Ordinal_33
test eax, eax
jne case.default.0x406743
xor eax, eax
jmp 0x407f93
mov ebx, dword [ebp + 0x10]
mov ecx, 0x41c188
push ebx
call dword [sym.imp.RSCLASS.dll_public_virtual:_int___thiscall_CFileUploadInfoListing::IsANodePointer_void__]
test eax, eax
je 0x407f93
cmp byte [ebx + 0x11c], 0x41
jne 0x407b55
push 0x41d284
call fcn.0040e6ee
mov edi, dword [ebx + 0x110]
mov eax, dword [ebp + 4]
mov ecx, dword [ebx + 0x228]
lea eax, [eax + edi - 0x14]
push eax
push ecx
mov dword [ebx + 0x110], eax
call fcn.0040ee63
add esp, 0xc
mov dword [ebx + 0x228], eax
test eax, eax
je 0x407f93
mov ecx, dword [ebp + 4]
lea esi, [ebp + 0x14]
sub ecx, 0x14
add edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407b90
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x3c]
push 0
sub ecx, 0x14
push eax
mov eax, dword [ebx + 0x10c]
lea edx, [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407c09
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x3c]
sub ecx, 0x14
cmp eax, ecx
jne 0x407c09
add dword [ebx + 0x110], eax
add ebx, 4
push ebx
call fcn.0040e6ee
xor edx, edx
mov ecx, dword [esp + 0x2e40]
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x18], edx
add esp, 4
mov dword [esp + 0x18], edx
mov word [esp + 0x12], ax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], edx
push 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2e44]
push ecx
lea edx, [esp + 0x18]
push 0x14
push edx
push eax
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x30], 8
call sub.REDCOMM.dll_Ordinal_33
test eax, eax
jne case.default.0x406743
jmp 0x407f93
push str.TPS_FILE_UPLOAD_DETAIL.WriteFile
push 1
push 0
call sub.REDCOMM.dll_Ordinal_22
xor eax, eax
jmp 0x407f93
mov esi, dword [ebp + 0x10]
mov ecx, 0x41c188
push esi
call dword [sym.imp.RSCLASS.dll_public_virtual:_int___thiscall_CFileUploadInfoListing::IsANodePointer_void__]
test eax, eax
je 0x407f93
mov eax, dword [esi + 0x10c]
cmp eax, 0xffffffff
je 0x407c51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0xffffffff
mov al, byte [esi + 0x11c]
mov ebx, dword [sym.imp.RSCLASS.dll_public:_void___thiscall_CHandleExamFile::destructor_void_]
xor edi, edi
cmp al, 0x41
jne 0x407d93
push 0x41d284
call fcn.0040e6ee
add esp, 4
lea ecx, [esp + 0x2c]
call dword [sym.imp.RSCLASS.dll_public:_void___thiscall_CHandleExamFile::constructor_void_]
mov ecx, dword [esi + 0x224]
mov edx, dword [esi + 0x110]
mov eax, dword [esi + 0x228]
push ecx
push edx
lea ecx, [esi + 0x11d]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2e44], 1
call dword [sym.imp.RSCLASS.dll_public:_int___thiscall_CHandleExamFile::ExamAddNewAnswerPaper_char___void___unsigned_long_int__unsigned_long_int_]
mov edx, dword [esi + 0x228]
test eax, eax
push edx
jne 0x407d6e
call fcn.0040e677
xor eax, eax
mov edx, dword [esp + 0x2e40]
mov dword [esp + 0x14], eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esi + 0x228], edi
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2e44]
push edx
lea eax, [esp + 0x18]
push 0x14
push eax
push ecx
mov byte [esp + 0x24], 2
mov byte [esp + 0x25], 0x8e
mov word [esp + 0x26], di
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xc
call sub.REDCOMM.dll_Ordinal_33
test eax, eax
jne 0x407d46
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2e34], 0xffffffff
call ebx
xor eax, eax
jmp 0x407f93
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x2c]
mov dword [0x41d280], edi
mov dword [esp + 0x2e34], 0xffffffff
call dword [sym.imp.RSCLASS.dll_public:_void___thiscall_CHandleExamFile::destructor_void_]
jmp case.default.0x406743
call fcn.0040e677
add esp, 4
mov dword [esi + 0x228], edi
lea ecx, [esp + 0x2c]
mov dword [0x41d280], edi
mov dword [esp + 0x2e34], 0xffffffff
call ebx
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x2e3c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push 1
mov dword [esp + 0x68], eax
push edx
mov dword [esp + 0x70], eax
push 0x14
mov dword [esp + 0x78], eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x2e4c]
lea eax, [esp + 0x68]
push eax
push ecx
mov byte [esp + 0x70], 2
mov byte [esp + 0x71], 0x8e
mov word [esp + 0x72], di
mov dword [esp + 0x74], 0x14
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 8
call sub.REDCOMM.dll_Ordinal_33
test eax, eax
je 0x407f93
mov eax, dword [esi + 0x118]
cmp eax, edi
je case.default.0x406743
cmp byte [esi + 0x11c], 0x50
jne 0x407ef5
lea ecx, [esp + 0x2c]
call dword [sym.imp.RSCLASS.dll_public:_void___thiscall_CHandleExamFile::constructor_void_]
lea ebp, [esi + 8]
lea ecx, [esp + 0x2c]
push ebp
mov dword [esp + 0x2e38], 2
call dword [sym.imp.RSCLASS.dll_public:_int___thiscall_CHandleExamFile::ExamJudgeFile_char__]
test eax, eax
jne 0x407e5a
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2e34], 0xffffffff
call ebx
xor eax, eax
jmp 0x407f93
mov ecx, dword [esi + 0x22c]
lea edx, [esi + 0x11d]
lea eax, [esi + 0x230]
push edx
push eax
push ecx
push ebp
lea ecx, [esp + 0x3c]
call dword [sym.imp.RSCLASS.dll_public:_int___thiscall_CHandleExamFile::ExamWriteAnswerInfo_char___unsigned_long_int__char___char__]
test eax, eax
jne 0x407e96
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2e34], 0xffffffff
call ebx
xor eax, eax
jmp 0x407f93
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x9c]
lea edx, [esp + 0xa0]
push ebp
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xa4], 4
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x41c1ac]
lea eax, [esp + 0x9c]
push eax
push 0xd8
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2e34], 0xffffffff
call ebx
jmp case.default.0x406743
cmp eax, edi
je case.default.0x406743
cmp byte [esi + 0x11c], 0x46
jne case.default.0x406743
add esi, 8
lea edx, [esp + 0x960]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x960]
push 0x5c
push eax
call fcn.0040e650
add esp, 8
cmp eax, edi
je 0x407f35
mov byte [eax], 0
lea ecx, [esp + 0x960]
push 1
push ecx
push edi
push esi
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp case.default.0x406743
mov ebp, dword [ebp + 0x10]
mov ecx, 0x41c188
push ebp
call dword [sym.imp.RSCLASS.dll_public_virtual:_int___thiscall_CFileUploadInfoListing::IsANodePointer_void__]
test eax, eax
je 0x407f93
mov eax, dword [ebp + 0x10c]
cmp eax, 0xffffffff
je 0x407f84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10c], 0xffffffff
add ebp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [esp + 0x2e2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2e28
ret