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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093eca
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x100c400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100c8cf4], 1
je 0x10053fe9
mov dword [0x100c8cf4], 1
call fcn.100540b0
push 0x100a6d08
call fcn.1001ca90
mov edx, eax
lea ecx, [ebp - 0x260]
call fcn.1001b5d0
add esp, 4
mov dword [ebp - 4], 0
call fcn.100540b0
lea ecx, [ebp - 0x260]
cmp eax, ecx
je 0x10053a65
cmp dword [ebp - 0x24c], 8
push dword [ebp - 0x250]
cmovae ecx, dword [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.100355b0
lea ecx, [ebp - 0x260]
call fcn.10054140
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x260]
push eax
call edi
test eax, eax
je 0x10054004
push 0x100a6d10
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x2a8]
call fcn.1001b5d0
add esp, 4
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.10054140
call fcn.100540b0
lea ecx, [eax + 0x18]
lea eax, [ebp - 0x2a8]
cmp ecx, eax
je 0x10053ae9
cmp dword [ebp - 0x294], 8
push dword [ebp - 0x298]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.100355b0
push 0x100a6d50
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x230]
call fcn.1001b5d0
add esp, 4
mov byte [ebp - 4], 3
call fcn.100540b0
lea ecx, [eax + 0x48]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x10053b32
cmp dword [ebp - 0x21c], 8
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.100355b0
push 0x100a6d34
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x278]
call fcn.1001b5d0
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
jne 0x10053b83
call fcn.100540b0
lea eax, [ebp - 0x230]
push eax
call fcn.10054e20
test eax, eax
je 0x1005403b
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
call edi
test eax, eax
jne 0x10053c65
call fcn.100540b0
push 0xa98
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x100a7220
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.100355b0
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 6
call dword [0x1009dbac]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x290]
push 0
cmovae eax, dword [ebp - 0x278]
push 0x1001
push eax
call dword [sym.imp.mfc140u.dll_CStdioFile::Open]
test eax, eax
je 0x10054072
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x290]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.mfc140u.dll_CStdioFile::WriteString]
lea ecx, [ebp - 0x290]
call dword [sym.imp.mfc140u.dll_CStdioFile::Close]
lea ecx, [ebp - 0x290]
call dword [sym.imp.mfc140u.dll_CStdioFile::CStdioFile]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.10035750
call fcn.100540b0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov esi, eax
cmovae ecx, dword [ebp - 0x230]
push ecx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x10053d22
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0xa
push str.StartNo
push str.C2No
call edi
test eax, eax
jle 0x10053cc9
mov ecx, dword [esi + 0xd0]
mov dword [ecx], eax
mov ecx, dword [esi + 0xd0]
mov dword [ecx + 8], eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0xa
push str.StepNo
push str.C2No
call edi
test eax, eax
jle 0x10053cf9
mov ecx, dword [esi + 0xd0]
mov dword [ecx + 4], eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push str.DisplayNum
push str.C2No
call edi
mov dword [esi + 0xdc], eax
lea eax, [ebp - 0x278]
push eax
call fcn.100540b0
lea ecx, [eax + 0x78]
call fcn.100832e0
lea ecx, [ebp - 0x230]
call fcn.10054430
call fcn.100540b0
lea ecx, [eax + 0x90]
call fcn.10044ee0
call fcn.100540b0
call fcn.100540b0
lea ecx, [eax + 0xc0]
call fcn.10079360
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push 0x100a07d4
push str.ExportPath
push str.Path
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053de0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.100355b0
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x248]
call fcn.10035750
test esi, esi
jne 0x10053e54
push str.TmpFile
call fcn.100540b0
mov edx, eax
lea ecx, [ebp - 0x2c0]
call fcn.1001b5d0
add esp, 4
push eax
mov byte [ebp - 4], 0xa
call fcn.100540b0
lea ecx, [eax + 0x30]
call fcn.100329f0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.10035750
jmp 0x10053e81
call fcn.100540b0
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
lea ecx, [eax + 0x30]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10053e65
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.100355b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push 0x100a07d4
push str.ImportPath
push str.Path
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053ee0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.100355b0
mov esi, dword [ebp - 0x238]
lea ecx, [ebp - 0x248]
call fcn.10035750
test esi, esi
jne 0x10053f54
push str.TmpFile
call fcn.100540b0
mov edx, eax
lea ecx, [ebp - 0x2c0]
call fcn.1001b5d0
add esp, 4
push eax
mov byte [ebp - 4], 0xb
call fcn.100540b0
lea ecx, [eax + 0x60]
call fcn.100329f0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.10035750
jmp 0x10053f81
call fcn.100540b0
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
lea ecx, [eax + 0x60]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10053f65
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.100355b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0
push str.Type
push str.Path
call edi
mov esi, eax
call fcn.100540b0
mov dword [eax + 0xc8], esi
call fcn.100540b0
mov ecx, eax
call fcn.10055ab0
lea ecx, [ebp - 0x278]
call fcn.10035750
lea ecx, [ebp - 0x230]
call fcn.10035750
lea ecx, [ebp - 0x2a8]
call fcn.10035750
lea ecx, [ebp - 0x260]
call fcn.10035750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008dbba
mov esp, ebp
pop ebp
ret
push str.gb0R_jWW
lea ecx, [ebp - 0x290]
call fcn.10035700
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2d0]
call fcn.1004e9b0
push 0x100b8308
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x100a6d60
lea ecx, [ebp - 0x290]
call fcn.10035700
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2d0]
call fcn.1004e9b0
push 0x100b8308
lea eax, [ebp - 0x2d0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x100a71f4
lea ecx, [ebp - 0x2c0]
call fcn.10035700
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2f8]
call fcn.1004e9b0
push 0x100b8308
lea eax, [ebp - 0x2f8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3