Function at 0x405130
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
mov eax, dword [0x41a464]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x122]
push ecx
mov word [esp + 0x124], ax
call fcn.004102d0
add esp, 0xc
push 0xff
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.004102d0
add esp, 0xc
cmp dword [ebp + 8], 6
jl 0x40524c
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
push str._micoauditcontrol__main__s__s__s__s__s_._n
call fcn.00401330
mov edx, dword [edi + 0xc]
push edx
push 0x417f8c
call fcn.004129e5
mov ecx, dword [edi + 0x10]
add esp, 0x20
test eax, eax
sete bl
mov byte [esp + 0x13], bl
mov edx, 0x4e8fa0
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4051d3
mov eax, dword [edi + 0x14]
push eax
call fcn.00405080
add esp, 4
mov edx, 0x4a65f8
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4051f0
push 0x14b8
push 0
push 0x4e7a78
call fcn.004102d0
mov esi, dword [edi + 8]
add esp, 0xc
call fcn.00405640
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push ecx
push edx
lea eax, [esp + 0x20]
push str.https:___s_audit.php_ticket_s
push eax
call fcn.004060ce
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.004043e0
test bl, bl
jne 0x405266
test eax, eax
je 0x405266
push str.GetFileConfigEx_failed._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00405f18
mov esp, ebp
pop ebp
ret
cmp dword [0x4a65f4], 0
mov dword [esp + 0x14], 0
jle 0x40532c
mov ebx, 0x4a7a60
push 0x200
lea ecx, [esp + 0x11c]
push 0
push ecx
call fcn.004102d0
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052a0
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052b0
push edx
lea edx, [esp + 0x11c]
push edx
sub eax, esi
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [0x41bf70], 0x3e8
jge 0x40530d
lea eax, [esp + 0x118]
push eax
call fcn.00406612
mov edi, dword [0x41bf70]
shl edi, 9
add edi, 0x41bf74
mov ecx, 0x80
lea esi, [esp + 0x11c]
add esp, 4
rep movsd dword es:[edi], dword [esi]
inc dword [0x41bf70]
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0x100
cmp eax, dword [0x4a65f4]
mov dword [esp + 0x14], eax
jl 0x405280
mov bl, byte [esp + 0x13]
test bl, bl
je 0x40538c
call fcn.00401470
test al, al
jne 0x40535e
push str._micoauditcontrol__getFixedDrive_return_0._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.00405f18
mov esp, ebp
pop ebp
ret
xor esi, esi
mov edi, 0x4e8f38
push 0x417ef8
push edi
call fcn.004129e5
add esp, 8
test eax, eax
je 0x4053e1
mov ecx, esi
call fcn.00404f20
add edi, 4
inc esi
cmp edi, 0x4e8f88
jl 0x405365
jmp 0x4053e1
xor ebx, ebx
cmp dword [0x498f74], ebx
jle 0x4053e1
xor esi, esi
cmp esi, 0x1400
jge 0x4053e1
lea edi, [esi + 0x4a6660]
mov eax, edi
lea edx, [eax + 1]
jmp 0x4053b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053b0
sub eax, edx
cmp byte [esi + eax + 0x4a665f], 0x5c
je 0x4053cb
mov byte [esi + eax + 0x4a6660], 0x5c
mov ecx, ebx
call fcn.00404f20
inc ebx
add esi, 0x100
cmp ebx, dword [0x498f74]
jl 0x405398
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x4041c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00404e90
test eax, eax
je 0x405418
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
call fcn.00404e90
test eax, eax
jne 0x405408
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.micoaduitcontrol_WaitForMultipleObjects._n
call ebx
push 0xffffffffffffffff
push 1
push 0x4e7a7c
push 0x14
mov byte [0x4e7a74], 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4e7a7c
mov eax, dword [esi]
test eax, eax
je 0x405451
push eax
call edi
add esi, 4
cmp esi, 0x4e7acc
jl 0x405448
push str.micoaduitcontrol_exit._n
call ebx
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405f18
mov esp, ebp
pop ebp
ret