Function at 0x429270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
xor dh, dh
push edi
xor dl, dl
jmp 0x429290
movzx eax, dh
inc dh
mov al, byte [eax + str.rheaMedia20]
cmp al, 0x61
jl 0x4292a3
cmp al, 0x7a
jle 0x4292cb
cmp al, 0x41
jl 0x4292ab
cmp al, 0x5a
jle 0x4292cb
cmp al, 0x30
jl 0x4292b3
cmp al, 0x39
jle 0x4292cb
cmp al, 0x5f
je 0x4292cb
cmp al, 0x2d
je 0x4292cb
cmp al, 0x20
jne 0x4292d6
movzx eax, dl
mov byte [eax + 0x51e874], 0x5f
jmp 0x4292d4
movzx ecx, dl
mov byte [ecx + 0x51e874], al
inc dl
cmp dl, 0x3f
je 0x4292e7
movzx eax, dh
cmp byte [eax + str.rheaMedia20], 0
jne 0x429290
movzx eax, dl
mov byte [eax + 0x51e874], 0
cmp byte [0x51e874], 0
jne 0x42930e
push str.noname
push 0x40
push 0x51e874
call fcn.004014e0
add esp, 0xc
mov edx, 0x51e874
mov ecx, esi
call fcn.00426d40
test al, al
je 0x429957
push 0x24
mov dword [ebp - 0xc10], 0x1020304
mov byte [0x51e8b4], 1
mov dword [0x51dd90], 4
call fcn.00403d9d
mov edi, eax
add esp, 4
mov dword [ebp - 0xc08], edi
mov cx, word [0x519950]
mov word [edi + 0x14], cx
lea eax, [edi + 4]
inc cx
mov dword [edi], vtable.rhea::Allocator.0
mov word [0x519950], cx
xor esi, esi
mov edi, edi
inc esi
cmp byte [esi + str.defaultA], 0
jne 0x429370
cmp esi, 0x10
jae 0x429393
push esi
push str.defaultA
push eax
call fcn.00407040
add esp, 0xc
mov byte [esi + edi + 4], 0
mov dword [edi], vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
mov ecx, 0x51e8b8
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [0x51dd94], edi
call fcn.004015b0
mov esi, dword [0x51dd94]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x429969
push 4
push 0x74
call fcn.0040bee4
add dword [esi + 0x1c], 0x74
mov edi, eax
inc dword [esi + 0x18]
add esp, 8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jbe 0x4293f4
mov dword [esi + 0x20], eax
mov al, byte [esi + 0x15]
mov byte [edi + 2], al
mov al, byte [esi + 0x14]
mov byte [edi + 3], al
mov dword [edi + 4], 0x74000040
add edi, 8
mov esi, dword [0x51dd94]
mov dword [edi + 0x4c], 0x4000000
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x429981
push 4
push 0x408
call fcn.0040bee4
add dword [esi + 0x1c], 0x408
mov ecx, eax
inc dword [esi + 0x18]
add esp, 8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jbe 0x42944d
mov dword [esi + 0x20], eax
mov al, byte [esi + 0x15]
mov byte [ecx + 2], al
mov al, byte [esi + 0x14]
mov byte [ecx + 3], al
lea eax, [ecx + 8]
mov dword [ecx + 4], 0x8040000
push 0x40
push 0
push edi
mov dword [edi + 0x48], eax
call fcn.00405490
add esp, 0xc
mov byte [edi + 0x68], 1
lea eax, [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x51d9e4
push str._s_log.txt
lea eax, [ebp - 0x404]
mov dword [0x51dd88], edi
push 0x400
push eax
call fcn.004014e0
mov esi, dword [0x51dd94]
add esp, 0x10
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x42999a
push 4
push 0x10
call fcn.0040bee4
add dword [esi + 0x1c], 0x10
mov ecx, eax
inc dword [esi + 0x18]
add esp, 8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jbe 0x4294db
mov dword [esi + 0x20], eax
mov al, byte [esi + 0x15]
mov byte [ecx + 2], al
mov al, byte [esi + 0x14]
mov byte [ecx + 3], al
lea eax, [ecx + 8]
mov dword [ecx + 4], 0x10000040
mov dword [eax], vtable.rhea::LogTargetFile.0
xor esi, esi
mov dword [eax + 4], 0
cmp byte [ebp - 0x404], 0
mov dword [ebp - 0xc34], eax
mov dword [0x51e870], eax
je 0x4295c6
jmp 0x429520
inc esi
cmp byte [ebp + esi - 0x404], 0
jne 0x429520
test esi, esi
je 0x4295c6
mov edi, dword [0x51dd94]
lea ecx, [esi + 1]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x4299b0
lea eax, [ecx + 3]
and eax, 0xfffffffc
add eax, 8
push 4
push eax
mov dword [ebp - 0xc08], eax
call fcn.0040bee4
mov ecx, dword [ebp - 0xc08]
mov edx, eax
add dword [edi + 0x1c], ecx
add esp, 8
inc dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jbe 0x42957f
mov dword [edi + 0x20], eax
mov al, byte [edi + 0x15]
mov byte [edx + 2], al
mov al, byte [edi + 0x14]
lea edi, [edx + 8]
mov byte [edx + 3], al
mov eax, ecx
shr eax, 0x18
mov byte [edx + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 5], al
mov eax, ecx
shr eax, 8
mov byte [edx + 6], al
mov byte [edx + 7], cl
push esi
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.00407040
mov eax, dword [ebp - 0xc34]
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4295c8
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x200
mov dword [eax + 4], edi
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test eax, eax
je 0x42960f
cmp word [ebp + eax*2 - 0x804], 0
je 0x429602
xor ecx, ecx
mov word [ebp + eax*2 - 0x804], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x200
lea eax, [ebp - 0xc04]
push eax
mov eax, dword [ebp - 0xc34]
push 0xffffffffffffffff
push dword [eax + 4]
push 0
push 0xfde9
call esi
test eax, eax
je 0x429957
cmp word [ebp + eax*2 - 0xc04], 0
je 0x42964c
xor ecx, ecx
mov word [ebp + eax*2 - 0xc04], cx
lea eax, [ebp - 0xc04]
push 0x504f00
push eax
call fcn.0040c65a
add esp, 8
test eax, eax
je 0x429957
push eax
call fcn.0040d0b9
mov esi, dword [0x51dd88]
add esp, 4
mov ecx, dword [0x51e870]
mov dword [ebp - 0xc08], ecx
cmp byte [esi + 0x68], 0
lea edi, [esi + 0x50]
je 0x429699
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc08]
xor eax, eax
jmp 0x4296a0
cmp dword [esi + eax*4], 0
je 0x4296b5
inc eax
cmp eax, 0x10
jb 0x4296a0
cmp byte [esi + 0x68], 0
je 0x4296c8
push edi
jmp 0x4296c2
mov dword [esi + eax*4], ecx
cmp byte [esi + 0x68], 0
je 0x4296c8
lea eax, [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51dd88]
push 0x504e28
push 0x504e04
push 0
push 0
push 2
call fcn.0042d790
push ecx
mov ecx, eax
call fcn.0042ea30
mov ecx, dword [0x51dd88]
push 0x503d60
push 0x504e04
push 0
push 1
push 2
call fcn.0042d790
push ecx
mov ecx, eax
call fcn.0042ea30
mov ecx, dword [0x51dd88]
push 0x504e28
push 0x504e04
push 0
push 0
push 2
call fcn.0042d790
push ecx
mov ecx, eax
call fcn.0042ea30
mov esi, dword [0x51dd94]
mov dword [0x519aa0], esi
mov dword [0x519aa8], esi
mov dword [0x519ac0], 0
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
cmp eax, vtable.rhea::AllocatorSimple_class_rhea::AllocatorTrackingPolicy_simple_.0
jne 0x4299c7
push 4
push 0x9008
call fcn.0040bee4
add dword [esi + 0x1c], 0x9008
mov ecx, eax
inc dword [esi + 0x18]
add esp, 8
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
jbe 0x429783
mov dword [esi + 0x20], eax
mov al, byte [esi + 0x15]
mov byte [ecx + 2], al
mov al, byte [esi + 0x14]
mov byte [ecx + 3], al
lea eax, [ecx + 8]
mov dword [ecx + 4], 0x8900000
push 0x9000
push 0
push eax
mov dword [0x519ac4], eax
call fcn.00405490
mov edx, dword [0x519ac4]
add esp, 0xc
xor ecx, ecx
mov dword [0x519ab4], 0x24
mov dword [0x519ab8], 0x400
xor eax, eax
mov dword [0x519ab0], 0
mov dword [0x519abc], edx
mov dword [0x519aac], 0
inc eax
lea ecx, [ecx + 0x24]
mov dword [edx + ecx - 0x24], eax
cmp eax, 0x3ff
jae 0x4297fd
mov edx, dword [0x519abc]
jmp 0x4297e6
mov eax, dword [0x519abc]
xor edi, edi
xor esi, esi
mov dword [eax + ecx], 0xffffffff
lea ecx, [ecx]
mov edx, dword [0x519ac4]
mov ecx, dword [0x519ac0]
add edx, edi
add ecx, esi
add edi, 0x24
and ecx, 0x3ff
inc esi
movzx eax, word [edx + 0x20]
and eax, 0xfc00
or eax, ecx
mov word [edx + 0x20], ax
movzx eax, word [edx + 0x20]
and eax, 0xfff
or eax, 0x1000
mov word [edx + 0x20], ax
movzx eax, word [edx + 0x20]
and eax, 0xf3ff
mov word [edx + 0x20], ax
movzx eax, word [edx + 0x20]
mov word [edx + 0x20], ax
cmp esi, 0x400
jb 0x429810
push 0x519ac8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0xc20]
push eax
call esi
lea eax, [ebp - 0xc30]
push eax
call esi
lea eax, [ebp - 0xc0c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x51dbec]
mov ecx, dword [ebp - 0xc0c]
sub ecx, dword [0x51dbf0]
push dword [0x51dbe8]
mov eax, dword [ebp - 0xc08]
sbb eax, dword [0x51dbf4]
push eax
push ecx
call fcn.004fce10
movzx ecx, word [ebp - 0xc20]
mov edi, eax
movzx edx, word [ebp - 0xc1e]
movzx eax, word [ebp - 0xc1a]
imul esi, ecx, 0x16d
mov ecx, edx
shl ecx, 5
sub ecx, edx
add esi, ecx
add esi, eax
movzx eax, byte [ebp - 0xc28]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
movzx eax, byte [ebp - 0xc26]
lea eax, [eax + ecx*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
movzx eax, byte [ebp - 0xc24]
add eax, edi
lea eax, [eax + ecx*4]
push eax
call fcn.0042d640
mov ecx, dword [0x51dd88]
push str.rhea::init__DONE_
push 0x504e04
push 1
push 0
push 2
call fcn.0042d790
push ecx
mov ecx, eax
call fcn.0042ea30
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00403d8c
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0x503d60
push 4
push 0x6c
mov ecx, esi
call edx
mov edi, eax
jmp 0x42940a
push 0
push 0
push 0x503d60
push 4
push 0x400
mov ecx, esi
call edx
jmp 0x429463
push 1
push 0
push 0x503d60
push 4
push 8
mov ecx, esi
call edx
jmp 0x4294f1
push 0
push 0
push 0x503d60
push 4
push ecx
mov ecx, edi
call edx
mov edi, eax
jmp 0x4295a9
push 0
push 0
push 0x503d60
push 4
push 0x9000
mov ecx, esi
call edx
jmp 0x429799