Function at 0x10003d20
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029337
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100141e0
add esp, 0x18
mov dword [ebp - 0x838], 0
xor eax, eax
mov dword [ebp - 0x834], 7
lea ecx, [ebp - 0x848]
mov word [ebp - 0x848], ax
push eax
push 0x1002b420
call fcn.10005a50
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x1002b420
lea ecx, [ebp - 0x890]
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.10005a50
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x1002b420
lea ecx, [ebp - 0x8a8]
mov dword [ebp - 0x898], 0
mov dword [ebp - 0x894], 7
mov word [ebp - 0x8a8], ax
call fcn.10005a50
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x1002b420
lea ecx, [ebp - 0x878]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 7
mov word [ebp - 0x878], ax
call fcn.10005a50
push 0
push 0x2b
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
push 0
call fcn.1000a260
lea edi, [ebp - 0x420]
add esp, 0x10
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10003e62
mov eax, dword [0x1002b448]
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10003e80
mov ecx, 7
mov esi, str.ButterflyImage
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10003ea3
mov dword [edi], eax
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003ec0
mov ecx, 7
mov esi, str.ButterflyImage
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10003ee3
mov eax, dword [str..ini]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ecx], eax
mov eax, dword [0x1002b490]
mov dword [ecx + 4], eax
mov ax, word [0x1002b494]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b420
push str.UsrPath
push str.MainConfig
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f40
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x10003fcd
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x10003fcd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003f70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x848]
call fcn.10005a50
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003fa0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x10]
call fcn.10005a50
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10004209
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100141e0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100141e0
add esp, 0x18
cmp dword [ebx + 0x68], 0
jne 0x1000402a
push 0x104
lea eax, [ebp - 0x628]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push 0x5c
push eax
call fcn.1001433a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x10004050
cmp dword [ebx + 0x6c], 8
lea ecx, [ebx + 0x58]
jb 0x10004035
mov ecx, dword [ecx]
lea edx, [ebp - 0x628]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x10004040
push str.MConfig.ini
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.100029a0
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b420
push str.UsrPath
push str.MainAppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100040a0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1000412d
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x1000412d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100040d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x890]
call fcn.10005a50
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004100
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x10]
call fcn.10005a50
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x10004209
cmp dword [ebx + 0x84], 8
lea eax, [ebx + 0x70]
jb 0x1000413b
mov eax, dword [eax]
push str.MConfig.ini
push eax
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.100029a0
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1002b420
push str.UsrPath
push str.MainAppInfo
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004182
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x1000421a
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x1000421a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100041b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x8a8]
call fcn.10005a50
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100041e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x10]
call fcn.10005a50
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
jne 0x1000421a
mov edi, dword [ebp - 0x848]
mov esi, dword [ebp - 0x878]
jmp 0x10004432
push 0x1002b420
push str.UsrPath
push str.MainAppInfo
lea eax, [ebp - 0x860]
push str.ButterflyImage
push eax
call fcn.1000b5d0
add esp, 0x14
mov edx, dword [ebp - 0x84c]
lea ecx, [ebp - 0x860]
mov esi, dword [ebp - 0x860]
cmp edx, 8
mov byte [ebp - 4], 4
cmovae ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004260
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x100042e5
cmp edx, 8
lea eax, [ebp - 0x860]
cmovae eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100042e5
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
lea ecx, [ebp - 0x878]
push eax
call fcn.10005a50
lea ecx, [ebx + 0x10]
lea eax, [ebp - 0x860]
cmp ecx, eax
je 0x100042d7
cmp dword [ebp - 0x84c], 8
push dword [ebp - 0x850]
cmovae eax, dword [ebp - 0x860]
push eax
call fcn.10005a50
cmp byte [ebx + 8], 0
mov byte [ebx + 7], 1
je 0x1000441b
cmp byte [ebx + 8], 0
je 0x1000441b
cmp byte [ebx + 7], 0
je 0x1000441b
cmp dword [ebp - 0x87c], 8
lea ecx, [ebp - 0x890]
mov edi, dword [ebp - 0x848]
lea eax, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x890]
cmp dword [ebp - 0x834], 8
mov edx, dword [ebp - 0x838]
cmovae eax, edi
cmp edx, dword [ebp - 0x880]
jne 0x10004359
mov esi, edx
test esi, esi
je 0x1000435d
sub eax, ecx
mov dword [ebp - 0x8ac], eax
nop
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x10004359
mov eax, dword [ebp - 0x8ac]
add ecx, 2
sub esi, 1
jne 0x10004340
jmp 0x1000435d
mov byte [ebx + 9], 1
cmp dword [ebp - 0x894], 8
lea ecx, [ebp - 0x8a8]
lea eax, [ebp - 0x848]
cmovae ecx, dword [ebp - 0x8a8]
cmp dword [ebp - 0x834], 8
cmovae eax, edi
cmp edx, dword [ebp - 0x898]
jne 0x100043b0
mov esi, edx
test esi, esi
je 0x100043b4
sub eax, ecx
mov dword [ebp - 0x8ac], eax
mov ax, word [ecx + eax]
cmp ax, word [ecx]
jne 0x100043b0
mov eax, dword [ebp - 0x8ac]
add ecx, 2
sub esi, 1
jne 0x10004397
jmp 0x100043b4
mov byte [ebx + 9], 1
cmp dword [ebp - 0x864], 8
lea ecx, [ebp - 0x878]
mov esi, dword [ebp - 0x878]
lea ebx, [ebp - 0x848]
cmovae ecx, esi
cmp dword [ebp - 0x834], 8
cmovae ebx, edi
cmp edx, dword [ebp - 0x868]
jne 0x10004403
test edx, edx
je 0x10004427
sub ebx, ecx
nop dword [eax + eax]
mov ax, word [ecx + ebx]
cmp ax, word [ecx]
jne 0x10004403
add ecx, 2
sub edx, 1
jne 0x100043f0
jmp 0x10004427
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, edi
mov dword [eax], 1
jmp 0x10004421
mov esi, dword [ebp - 0x878]
mov edi, dword [ebp - 0x848]
lea ecx, [ebp - 0x860]
call fcn.100026c0
mov eax, dword [ebp - 0x864]
mov ebx, dword [ebp - 0x890]
cmp eax, 8
jb 0x10004472
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10004468
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000453a
push ecx
push esi
call fcn.10011b41
add esp, 8
mov eax, dword [ebp - 0x894]
cmp eax, 8
jb 0x100044b2
mov edx, dword [ebp - 0x8a8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100044a8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000453f
push ecx
push edx
call fcn.10011b41
add esp, 8
mov eax, dword [ebp - 0x87c]
cmp eax, 8
jb 0x100044e8
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x100044de
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004544
push ecx
push ebx
call fcn.10011b41
add esp, 8
mov eax, dword [ebp - 0x834]
cmp eax, 8
jb 0x1000451e
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10004514
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004549
push ecx
push edi
call fcn.10011b41
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
call fcn.10016079
call fcn.10016079
call fcn.10016079
call fcn.10016079
int3