Function at 0x10030360
Capabilities:
Check if file exists
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10068f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov eax, dword [esp + 0x134]
lea ebp, [eax + 0x20]
mov esi, 8
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x18], esi
jb 0x100303b8
mov eax, dword [ebp + 4]
jmp 0x100303bb
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003046d
cmp dword [ebp + 0x18], esi
jb 0x100303d4
mov eax, dword [ebp + 4]
jmp 0x100303d7
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003046d
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, ebp
lea ebx, [esp + 0x18]
mov dword [esp + 0x12c], esi
call fcn.10037500
test eax, eax
jne 0x10030434
mov edi, dword [esp + 0x18]
test edi, edi
je 0x10030417
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x18], edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jge 0x10030462
mov ecx, ebp
lea ebx, [esp + 0x18]
call fcn.10037500
test eax, eax
je 0x10030402
push 0xfffe
call fcn.10047377
add esp, 4
push 0xfffe
mov esi, eax
push 0
push esi
mov dword [esp + 0x4c], esi
call fcn.10049f60
add esp, 0xc
cmp dword [ebp + 0x18], 8
jb 0x10030499
mov eax, dword [ebp + 4]
jmp 0x1003049c
test edi, edi
je 0x1003046d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.1004738d
add esp, 0x11c
ret 4
lea eax, [ebp + 4]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
cmp word [esi], 0
mov dword [esp + 0x20], esi
je 0x10030963
lea eax, [esp + 0x4c]
push eax
xor ebp, ebp
call fcn.100322d0
push 0x2000
mov byte [esp + 0x130], 1
call fcn.10047377
add esp, 4
push 0x2000
mov ebx, eax
push ebp
push ebx
mov dword [esp + 0x54], ebx
call fcn.10049f60
mov eax, dword [esp + 0x28]
add eax, 0x20
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x100304ff
mov eax, dword [eax + 4]
jmp 0x10030502
add eax, 4
mov ecx, dword [esp + 0x20]
push eax
push 0x1000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebx], bp
je 0x100307d4
lea ecx, [ecx]
xor edx, edx
mov eax, ebx
mov word [esp + 0x94], dx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030541
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x94]
call fcn.10002d50
push 1
push 0x10070724
xor eax, eax
mov edx, esi
mov byte [esp + 0x134], 2
call fcn.10008ad0
mov edi, eax
cmp edi, 0xffffffff
je 0x10030727
mov eax, esi
push eax
mov ecx, edi
xor edx, edx
lea esi, [esp + 0xb0]
call fcn.10007e80
lea ecx, [esp + 0x90]
push ecx
lea edx, [edi + 1]
or ecx, 0xffffffff
lea esi, [esp + 0xcc]
mov byte [esp + 0x130], 3
call fcn.10007e80
mov byte [esp + 0x12c], 4
cmp dword [esp + 0xdc], 0x20
je 0x1003063a
mov esi, 8
cmp dword [esp + 0xe0], esi
jb 0x100305e7
mov edx, dword [esp + 0xcc]
push edx
call fcn.10047382
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], ax
cmp dword [esp + 0xc4], esi
jb 0x1003061d
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.10047382
add esp, 4
xor edx, edx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], dx
jmp 0x1003072c
lea ecx, [esp + 0xc8]
lea edi, [esp + 0x74]
call fcn.10036d60
mov esi, eax
lea ecx, [esp + 0xac]
lea edi, [esp + 0xe4]
mov byte [esp + 0x12c], 5
call fcn.10036d60
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x130], 6
call fcn.10031bd0
push 0xffffffffffffffff
push ebp
push esi
mov ecx, eax
call fcn.100023a0
mov esi, 0x10
cmp dword [esp + 0xfc], esi
jb 0x100306a2
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.10047382
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebp
mov byte [esp + 0xe8], 0
cmp dword [esp + 0x8c], esi
jb 0x100306d2
mov edx, dword [esp + 0x78]
push edx
call fcn.10047382
add esp, 4
mov esi, 8
cmp dword [esp + 0xe0], esi
jb 0x100306f0
mov eax, dword [esp + 0xcc]
push eax
call fcn.10047382
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], cx
cmp dword [esp + 0xc4], esi
jb 0x1003072c
mov edx, dword [esp + 0xb0]
push edx
call fcn.10047382
add esp, 4
jmp 0x1003072c
mov esi, 8
mov byte [esp + 0x12c], 1
cmp dword [esp + 0xa8], esi
jb 0x1003074d
mov eax, dword [esp + 0x94]
push eax
call fcn.10047382
add esp, 4
mov edi, 7
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10030770
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xcc]
call fcn.10002d50
cmp dword [esp + 0xe0], 8
mov edx, dword [esp + 0xdc]
lea ebx, [ebx + edx*2 + 2]
jb 0x100307b3
mov eax, dword [esp + 0xcc]
push eax
call fcn.10047382
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], cx
cmp word [ebx], bp
jne 0x10030520
mov eax, dword [esp + 0x20]
xor edx, edx
mov word [esp + 0xb0], dx
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100307f7
mov ebp, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0xb0]
call fcn.10002d50
mov ecx, esi
lea edi, [esp + 0xe4]
mov byte [esp + 0x12c], 7
call fcn.10036d60
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov byte [esp + 0x12c], 8
call fcn.10031a40
mov esi, eax
lea eax, [esp + 0x4c]
cmp esi, eax
je 0x1003086e
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea ecx, [esp + 0x7c]
push ecx
mov eax, esi
call fcn.10032570
lea ebx, [esp + 0x4c]
mov eax, esi
call fcn.10032650
cmp dword [esp + 0xfc], 0x10
jb 0x10030888
mov edx, dword [esp + 0xe8]
push edx
call fcn.10047382
add esp, 4
xor ebx, ebx
cmp dword [esp + 0xc4], 8
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
jb 0x100308bd
mov eax, dword [esp + 0xb0]
push eax
call fcn.10047382
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.10049ab1
add esp, 4
lea esi, [esp + 0x4c]
mov byte [esp + 0x12c], 9
call fcn.10032900
mov byte [esp + 0x12c], bl
mov edx, dword [esp + 0x4c]
push edx
call fcn.10047382
add esp, 4
xor eax, eax
mov word [esp + 0x28], ax
mov edi, 7
mov eax, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
lea edx, [eax + 2]
jmp 0x10030910
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10030910
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x28]
call fcn.10002d50
cmp dword [esp + 0x3c], 8
mov ecx, dword [esp + 0x38]
lea esi, [ebp + ecx*2 + 2]
mov dword [esp + 0x20], esi
jb 0x1003094b
mov edx, dword [esp + 0x28]
push edx
call fcn.10047382
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], ax
cmp word [esi], bx
jne 0x100304b7
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x10030978
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10049ab1
add esp, 4
push esi
push 0x1006f9e0
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], esi
mov byte [esp + 0x10c], 0
call fcn.10002be0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x12c], 0xa
mov eax, dword [edi + 0x18]
mov ebp, dword [edi]
mov ebx, dword [eax]
mov dword [esp + 0x40], ebp
mov esi, dword [edi + 0x18]
mov eax, dword [edi]
test ebp, ebp
je 0x100309d5
cmp ebp, eax
je 0x100309da
call fcn.10048865
cmp ebx, esi
je 0x10030ba1
test ebp, ebp
jne 0x10030a6c
call fcn.10048865
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x100309fb
call fcn.10048865
mov edx, dword [ebx + 0x40]
mov esi, dword [edx]
mov ebp, dword [ebx + 0x28]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x10030a71
call fcn.10048865
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x10030a1c
call fcn.10048865
mov edi, dword [ebx + 0x40]
mov eax, dword [ebx + 0x28]
test ebp, ebp
je 0x10030a2a
cmp ebp, eax
je 0x10030a2f
call fcn.10048865
cmp esi, edi
je 0x10030b27
test ebp, ebp
jne 0x10030a75
call fcn.10048865
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10030a4c
call fcn.10048865
mov edi, dword [esi + 0x20]
mov eax, edi
cmp eax, edi
jae 0x10030a55
mov eax, edi
cmp edi, 8
jb 0x10030a61
mov eax, 8
cmp dword [esi + 0x24], 0x10
jb 0x10030a7a
mov edx, dword [esi + 0x10]
jmp 0x10030a7d
mov eax, dword [ebp]
jmp 0x100309f1
mov eax, dword [eax]
jmp 0x10030a12
mov eax, dword [ebp]
jmp 0x10030a42
lea edx, [esi + 0x10]
mov ecx, str.config15
call fcn.1002cc80
test eax, eax
jne 0x10030a9a
cmp edi, 8
jb 0x10030a9a
cmp edi, 8
setne al
test eax, eax
je 0x10030ac3
test ebp, ebp
jne 0x10030adc
call fcn.10048865
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x10030aaf
call fcn.10048865
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x10c]
call fcn.1001cb20
test ebp, ebp
jne 0x10030acc
call fcn.10048865
cmp byte [esi + 0x45], 0
je 0x10030ae1
call fcn.10048865
jmp 0x10030a03
mov eax, dword [ebp]
jmp 0x10030aa5
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x45], 0
jne 0x10030b03
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x10030afc
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x10030af2
mov esi, ecx
jmp 0x10030a03
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x10030b20
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x10030b20
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x10030b10
mov esi, eax
jmp 0x10030a03
cmp dword [esp + 0x40], 0
jne 0x10030b33
call fcn.10048865
cmp byte [ebx + 0x49], 0
je 0x10030b4b
call fcn.10048865
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
jmp 0x100309c8
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x49], 0
jne 0x10030b79
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
jne 0x10030b6a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x49], 0
je 0x10030b60
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, ecx
jmp 0x100309c8
mov eax, dword [ebx + 4]
cmp byte [eax + 0x49], 0
jne 0x10030b92
cmp ebx, dword [eax + 8]
jne 0x10030b92
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x49], 0
je 0x10030b82
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ebx, eax
jmp 0x100309c8
cmp dword [esp + 0x114], 0
je 0x10030dda
push 8
mov ebp, 0xf
xor esi, esi
push str.config15
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
call fcn.10002be0
mov byte [esp + 0x12c], 0xb
push 7
push str.config4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.10002be0
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x2c]
mov ecx, edi
mov byte [esp + 0x134], 0xc
call fcn.1002fba0
mov ebx, 0x10
cmp dword [esp + 0x3c], ebx
jb 0x10030c3f
mov eax, dword [esp + 0x28]
push eax
call fcn.10047382
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
mov byte [esp + 0x12c], 0xf
cmp dword [esp + 0xa8], ebx
jb 0x10030c6d
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10047382
add esp, 4
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x104]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], esi
mov byte [esp + 0x98], 0
call fcn.10031710
mov byte [esp + 0x12c], bl
cmp dword [esp + 0xf8], esi
jne 0x10030d57
push 8
push str.config15
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
call fcn.10002be0
mov byte [esp + 0x12c], 0x11
push 7
push str.config4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
call fcn.10002be0
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
mov edx, edi
mov byte [esp + 0x134], 0x12
call fcn.1002fdf0
cmp dword [esp + 0x3c], ebx
jb 0x10030d2f
mov edx, dword [esp + 0x28]
push edx
call fcn.10047382
add esp, 4
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
cmp dword [esp + 0xa8], ebx
jb 0x10030d90
mov eax, dword [esp + 0x94]
push eax
call fcn.10047382
add esp, 4
jmp 0x10030d90
lea eax, [esp + 0xac]
lea edx, [esp + 0xe4]
call fcn.1002e010
test al, al
jne 0x10030d90
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
call fcn.10032250
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], esi
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
cmp dword [esp + 0xc4], ebx
jb 0x10030da9
mov eax, dword [esp + 0xb0]
push eax
call fcn.10047382
add esp, 4
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
cmp dword [esp + 0xfc], ebx
jb 0x10030ddf
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.10047382
add esp, 4
jmp 0x10030ddf
mov ebx, 0x10
cmp dword [esp + 0x118], ebx
jb 0x10030df8
mov edx, dword [esp + 0x104]
push edx
call fcn.10047382
add esp, 4
cmp dword [esp + 0x18], 0
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
je 0x10030e28
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1003046f