Function at 0x1004c3f2
Capabilities:
Enumerate gui resources
Read file on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2c8
mov eax, dword [0x1022ee64]
xor eax, esp
mov dword [esp + 0x2c4], eax
cmp byte [0x10231c74], 0
push esi
push edi
jne 0x1004c8b5
push 0x10228504
lea ecx, [esp + 0x14]
mov byte [0x10231c74], 1
call fcn.1004cc01
and dword [esp + 8], 0
call fcn.10057ab0
push 0
mov esi, eax
call fcn.10058d20
push eax
push esi
call fcn.10057480
add esp, 0xc
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
push dword [esp + 0x20]
push ecx
push esi
call fcn.100574c0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x284]
push eax
push esi
call fcn.10057350
add esp, 0xc
push esi
call fcn.10057a20
pop ecx
lea ecx, [esp + 0x10]
call fcn.1004cd31
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
xor esi, esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x1000
mov dword [esp + 0x48], esi
push edi
mov dword [esp + 0x50], 7
mov word [esp + 0x3c], ax
call fcn.1004cc9e
push ecx
lea eax, [esp + 0x14]
fldz
push eax
fst qword [esp + 0x28]
push ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x1c], esi
fstp qword [esp + 0x34]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.1004d04d
add esp, 8
fldz
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
fst qword [esp + 0x24]
fstp qword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1ec]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.1004d04d
add esp, 0xc
lea ecx, [esp + 0x1e0]
call fcn.1004cffb
lea ecx, [esp + 0xb0]
call fcn.1004cffb
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x90]
fld1
fstp qword [esp + 0x90]
fld qword [0x10228620]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 8]
mov dword [esp + 0x14], esi
inc edi
push eax
fstp qword [esp + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.1004c92c
fld qword [0x10228628]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
fld qword [0x10228630]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
fld qword [0x10228638]
lea eax, [esp + 0x280]
fstp qword [esp + 0x280]
fld qword [0x10228640]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
fstp qword [esp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.1004c92c
fld qword [0x10228648]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
fld qword [0x10228650]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
lea eax, [esp + 0x70]
fld1
fstp qword [esp + 0x70]
fld qword [0x10228620]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
fstp qword [esp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.1004c92c
fld qword [0x10228620]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
fld qword [0x10228628]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
fstp qword [esp + 0xc]
call fcn.1004c92c
push 2
lea eax, [esp + 0xd4]
fldz
pop ecx
fst qword [eax]
fst qword [eax + 8]
add eax, 0x10
sub ecx, 1
jne 0x1004c67d
xor eax, eax
lea ecx, [esp + 0xb0]
mov word [esp + 0xf0], ax
or edi, 0xffffffff
mov byte [esp + 0x190], al
fstp st(0)
mov word [esp + 0x1a4], ax
lea eax, [esp + 0x70]
push 1
push eax
mov dword [esp + 0x1b0], edi
call fcn.1004d73f
cmp dword [esp + 0x48], 8
lea edx, [esp + 0x34]
mov esi, dword [esp + 0x44]
cmovae edx, dword [esp + 0x34]
test esi, esi
je 0x1004c6fc
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
push 0x5c
cmovb ecx, eax
pop eax
lea ecx, [edx + ecx*2]
jmp 0x1004c6f1
cmp ecx, edx
je 0x1004c6fc
sub ecx, 2
cmp word [ecx], ax
jne 0x1004c6ea
sub ecx, edx
sar ecx, 1
jmp 0x1004c6fe
mov ecx, edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x34]
xor edi, edi
cmp esi, ecx
mov dword [esp + 0x20], edi
cmovb ecx, esi
mov dword [esp + 0x24], edi
cmp dword [esp + 0x48], 8
push ecx
cmovae eax, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
call fcn.1004d1e1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.1004cb51
lea ecx, [esp + 0x10]
call fcn.1004cc70
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SQLite.Interop.dll
call esi
mov eax, 0x7ffffffe
mov dword [esp + 0x4c], edi
sub eax, dword [esp + 0x44]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
cmp eax, 1
jb 0x1004c8c9
cmp dword [esp + 0x48], 8
lea eax, [esp + 0x34]
push 1
cmovae eax, dword [esp + 0x38]
push ecx
push dword [esp + 0x4c]
push eax
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.1004d552
push 0xb
push str.service.wav
lea ecx, [esp + 0x18]
call fcn.1004cab8
push eax
lea ecx, [esp + 0x5c]
call fcn.1004cb88
lea ecx, [esp + 0x10]
call fcn.1004cc70
push ecx
lea ecx, [esp + 0x50]
call fcn.1004c8d9
cmp dword [esp + 0x6c], 8
lea eax, [esp + 0x58]
push 0x1022850c
cmovae eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
call fcn.101882d1
add esp, 0xc
push edi
push 0x629a0
push dword [esp + 0x10]
call fcn.1018888e
add esp, 0xc
push dword [esp + 8]
push 0x24aa
push 1
push dword [esp + 0x58]
call fcn.1018d4d2
push dword [esp + 0x18]
call fcn.1018853b
add esp, 0x14
push str.tessdll.dll
call esi
push 0x24aa
push edi
lea esi, [eax + 0x1000]
push esi
call fcn.10184ad0
mov edi, dword [esp + 0x58]
add esp, 0xc
xor edx, edx
movzx eax, dl
lea ecx, [edx + edi]
imul eax, eax, 0x43
sub al, 0x28
add byte [ecx], al
inc edx
mov eax, 0x24aa
cmp edx, eax
jb 0x1004c851
push eax
push dword [esp + 0x50]
push esi
call fcn.10184550
add esp, 0xc
xor edi, edi
push edi
push esi
call dword [sym.imp.USER32.dll_EnumWindows]
lea ecx, [esp + 0x58]
call fcn.1004cc70
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x1004c8ac
mov eax, dword [esp + 0x54]
sub eax, ecx
push eax
push ecx
call fcn.1004d4e0
pop ecx
pop ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
lea ecx, [esp + 0x34]
call fcn.1004cc70
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
xor ecx, esp
call fcn.10182c97
mov esp, ebp
pop ebp
ret
call fcn.1004b5c4
int3