Function at 0x407460
Capabilities:
Delete file
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x484382
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19154
call fcn.0043e250
mov eax, dword [0x4ba8fc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x19160], eax
mov dword [esp + 0x18], esi
mov dword [esi], 0x492e68
call fcn.004073b0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1916c], ebx
je 0x40778d
mov eax, dword [0x4bc3c0]
cmp dword [eax - 0xc], ebx
jl 0x4074fc
push str.green_en
push eax
call fcn.0043d84d
add esp, 8
cmp eax, ebx
je 0x4074fc
sub eax, dword [0x4bc3c0]
cmp eax, 0xffffffff
je 0x4074fc
push str.module_en.ini
push str.module.ini
lea ecx, [esp + 0x14]
call fcn.00406d00
call fcn.0045d1dd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
mov byte [esp + 0x50], 0
mov ecx, 0x40
lea edi, [esp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
push eax
push 0x104
mov byte [esp + 0x19174], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004073b0
push str.BHINIFILE.tmp
push eax
lea edx, [esp + 0x24]
mov bl, 2
push edx
mov byte [esp + 0x19178], bl
call fcn.00407140
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19170], 3
call fcn.00407070
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1916c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40759d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x1916c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x158], 0
xor eax, eax
mov ecx, 0x63ff
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
call fcn.0045e35d
mov eax, dword [esp + 0xc]
push 0
push 0
mov bl, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19178], bl
call fcn.0045e6a5
test eax, eax
je 0x4076c8
push 0x19000
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x28]
call fcn.0045e070
lea ecx, [esp + 0x20]
call fcn.0045e2fb
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407640
sub eax, edx
test eax, eax
lea ecx, [esp + 0x158]
jle 0x407662
mov dl, byte [ecx]
xor dl, 0xbd
add dl, 0x69
mov byte [ecx], dl
inc ecx
dec eax
jne 0x407654
lea ecx, [esp + 0x30]
call fcn.0042ab10
push 0
push 0x5001
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x19178], 5
call fcn.0042b560
test eax, eax
je 0x4076b6
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407692
sub eax, edx
push eax
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x38]
call fcn.0045db44
lea ecx, [esp + 0x30]
call fcn.0045dd50
lea ecx, [esp + 0x30]
mov byte [esp + 0x1916c], bl
call fcn.0045dd8c
jmp 0x4076ed
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x492ed4
push edx
call fcn.00407120
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.00468f4f
test esi, esi
mov edi, dword [esp + 0x14]
mov dword [edi + 4], 0
je 0x407708
push esi
call fcn.0043db4d
add esp, 4
mov dword [edi + 4], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1916c], 1
call fcn.0045e39c
lea eax, [esi - 0x10]
mov byte [esp + 0x1916c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40773b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x1916c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x19164]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1915c]
mov eax, esi
call fcn.0043d1f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, ebx
mov dword [esi + 4], ebx
je 0x40773f
push edi
call fcn.0043db4d
add esp, 4
mov dword [esi + 4], eax
jmp 0x40773f