Function at 0x407bd9
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x490
lea ebp, [esp - 4]
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x490], eax
push 0x1cc
mov eax, 0x40ad2a
call fcn.00409b4c
mov edi, dword [ebp + 0x49c]
mov esi, dword [ebp + 0x4a0]
xor ebx, ebx
cmp edi, ebx
je 0x40849f
cmp esi, ebx
je 0x40849f
xor eax, eax
push 0x206
mov word [ebp + 0x70], ax
lea eax, [ebp + 0x72]
push ebx
push eax
call fcn.00409aee
add esp, 0xc
push 0x104
lea eax, [ebp + 0x70]
push eax
push edi
call dword [0x40b08c]
push str.CheckFileTrust:_
lea ecx, [ebp + 0x54]
call dword [0x40b1d4]
push esi
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], ebx
call dword [0x40b1d8]
push 0x40c138
lea ecx, [ebp + 0x54]
call dword [0x40b1d8]
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
call dword [0x40b1d8]
push 0x40c130
lea ecx, [ebp + 0x54]
call dword [0x40b1d8]
test byte [0x4115d8], 1
mov esi, 0x4115bc
jne 0x407cb9
or dword [0x4115d8], 1
mov ecx, esi
mov byte [ebp - 4], 1
call dword [0x40b164]
push 0x40aebf
call fcn.0040a006
pop ecx
mov byte [ebp - 4], bl
test byte [0x4115d8], 2
jne 0x407ce5
or dword [0x4115d8], 2
mov ecx, 0x41159c
mov byte [ebp - 4], 2
call fcn.00407594
push 0x40aee0
call fcn.0040a006
pop ecx
mov byte [ebp - 4], bl
cmp dword [0x411598], ebx
jne 0x4081b9
xor edi, edi
inc edi
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
mov dword [0x411598], edi
call dword [0x40b164]
push 0x41159c
push esi
mov byte [ebp - 4], 3
call fcn.004070f7
pop ecx
pop ecx
test eax, eax
je 0x407df3
push dword [0x4110a4]
mov edi, dword [0x40b160]
lea eax, [ebp - 0x3c]
push esi
push eax
call edi
add esp, 0xc
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 4
call dword [0x40b248]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call dword [0x40b1e0]
push dword [0x411094]
lea eax, [ebp + 0x38]
push esi
push eax
call edi
add esp, 0xc
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 5
call dword [0x40b1dc]
mov edi, dword [0x40b04c]
push eax
push ebx
push dword [0x4110a0]
push dword [0x411098]
call edi
lea ecx, [ebp]
mov dword [0x411594], eax
call dword [0x40b1dc]
push eax
push ebx
push dword [0x4110ac]
push dword [0x4110a8]
call edi
mov dword [0x411590], eax
cmp eax, ebx
jne 0x407dc8
lea ecx, [ebp + 0x38]
call dword [0x40b1dc]
push eax
push ebx
push dword [0x41109c]
push dword [0x411098]
call edi
mov dword [0x411590], eax
lea ecx, [ebp]
call dword [0x40b1dc]
push eax
push ebx
push dword [0x4110b4]
push dword [0x4110a8]
call edi
lea ecx, [ebp + 0x38]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call dword [0x40b1e0]
jmp 0x407e2c
push str._GetHallCheckInfo_Failed
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [0x40b160]
push eax
mov byte [ebp - 4], 6
call fcn.00405008
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call dword [0x40b1e0]
lea eax, [ebp + 0x54]
push edi
push eax
call fcn.0040586b
pop ecx
pop ecx
xor edi, edi
inc edi
cmp dword [0x411590], edi
je 0x4081ad
cmp dword [ebp - 0x18], ebx
je 0x4081ad
push str.Enable_Check_Game_Dir
lea ecx, [ebp + 0x38]
call dword [0x40b1d4]
push dword [0x411594]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 7
call fcn.0040420f
add esp, 0xc
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call dword [0x40b1e0]
lea ecx, [ebp - 0xa0]
call fcn.004075ad
lea eax, [ebp - 0xa0]
push eax
push esi
mov byte [ebp - 4], 8
call fcn.00407882
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ebx
jle 0x40819e
push 1
push 3
lea ecx, [ebp - 0x150]
call dword [0x40b1f8]
push dword [ebp - 0x20]
lea eax, [ebp - 0x148]
push dword [0x4110b8]
mov byte [ebp - 4], 9
push eax
call fcn.004038e5
pop ecx
pop ecx
mov ecx, eax
call dword [0x40b1f4]
xor eax, eax
push 0x206
mov word [ebp + 0x278], ax
lea eax, [ebp + 0x27a]
push ebx
push eax
call fcn.00409aee
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x150]
call dword [0x40b1f0]
mov esi, eax
lea ecx, [ebp]
mov byte [ebp - 4], 0xa
call dword [0x40b1dc]
push eax
push 0x104
lea eax, [ebp + 0x278]
push eax
push 0x40c360
mov ecx, esi
call dword [0x40b1dc]
push eax
push dword [0x4110a8]
call dword [0x40b00c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 9
call dword [0x40b1e0]
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp + 0x38]
call dword [0x40b1d4]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xb
call dword [0x40b14c]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp + 0x38]
call dword [0x40b150]
mov edi, eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 0x38]
call dword [0x40b14c]
push dword [0x40b338]
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp + 0x488]
push eax
call fcn.00402050
add esp, 0x20
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp - 0x68]
call dword [0x40b1d4]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call fcn.0040669c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xb
call dword [0x40b1e0]
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x88]
lea ecx, [ebp - 0x4c]
call fcn.00405377
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004044e0
test al, al
jne 0x40812f
lea ecx, [ebp - 0x44]
call fcn.00404573
lea ecx, [eax + 0x1c]
call dword [0x40b1dc]
push eax
call fcn.0040883c
pop ecx
test eax, eax
je 0x40812f
lea eax, [ebp + 0x278]
push eax
lea ecx, [ebp - 0x3c]
call dword [0x40b1d4]
push dword [0x4110cc]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call dword [0x40b1d4]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00404573
push 0x41159c
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
add eax, 0x1c
push eax
call fcn.00406970
add esp, 0x10
test eax, eax
lea ecx, [ebp - 0x68]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0xd
call dword [0x40b1e0]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call dword [0x40b1e0]
cmp byte [ebp - 0xd], bl
je 0x40812f
push 1
push 3
lea ecx, [ebp - 0x1d8]
call dword [0x40b1f8]
push dword [0x40b17c]
lea eax, [ebp + 0x278]
push str._Failed
push eax
lea eax, [ebp - 0x1d0]
push str.CheckFileTrust:_Load_Game_File
push eax
mov byte [ebp - 4], 0xf
call fcn.004038e5
pop ecx
pop ecx
push eax
call fcn.004038e5
pop ecx
pop ecx
push eax
call fcn.004038e5
pop ecx
pop ecx
mov ecx, eax
call dword [0x40b184]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1d8]
call dword [0x40b1f0]
mov ecx, eax
mov byte [ebp - 4], 0x10
call dword [0x40b1dc]
push eax
call dword [section..rdata]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call dword [0x40b1e0]
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0xb
call dword [0x40b1ec]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call dword [0x40b1e0]
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 8
call dword [0x40b1ec]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jl 0x407ea6
cmp dword [ebp - 0x14], ebx
jne 0x40819e
push str._GetGameCheckInfo_Failed
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [0x40b160]
push eax
mov byte [ebp - 4], 0x11
call fcn.00405008
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call dword [0x40b1e0]
push dword [0x411594]
lea eax, [ebp + 0x54]
push eax
call fcn.0040586b
pop ecx
pop ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.004074f3
lea ecx, [ebp]
mov byte [ebp - 4], bl
call dword [0x40b1e0]
cmp dword [0x411590], 1
jne 0x4081f2
push str.Check_Closed
lea ecx, [ebp - 0x3c]
call dword [0x40b1d4]
push dword [0x411594]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 0x12
call fcn.0040420f
add esp, 0xc
lea ecx, [ebp - 0x3c]
jmp 0x408489
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x1c]
call dword [0x40b1d4]
lea eax, [ebp + 0x488]
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x13
call dword [0x40b14c]
mov esi, eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 0x1c]
call dword [0x40b150]
mov edi, eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp + 0x1c]
call dword [0x40b14c]
push dword [0x40b338]
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
call fcn.00402050
mov esi, 0x40b5b0
push esi
lea eax, [ebp + 0x1c]
push 0x40bf90
push eax
call fcn.0040783f
push esi
lea eax, [ebp + 0x1c]
push 0x40c028
push eax
call fcn.0040783f
add esp, 0x38
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1c]
mov esi, 0x41159c
push eax
mov ecx, esi
call fcn.0040655a
push esi
push dword [0x4115b4]
lea ecx, [ebp - 0x4c]
call fcn.00405377
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004044e0
test al, al
jne 0x408486
lea ecx, [ebp - 0x1c]
call fcn.00404573
cmp dword [eax + 0x30], ebx
jne 0x408486
lea ecx, [ebp - 0x1c]
call fcn.00404573
xor esi, esi
sub esp, 0x1c
inc esi
mov dword [eax + 0x30], esi
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call dword [0x40b100]
lea ecx, [ebp - 0xc8]
call fcn.00408e73
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x14
call fcn.00408d36
test eax, eax
je 0x4083df
xor eax, eax
mov byte [ebp + 0x480], bl
lea edi, [ebp + 0x481]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x14], ebx
call fcn.00408d3e
push dword [ebp - 0x14]
push eax
lea eax, [ebp + 0x480]
push eax
call fcn.00409995
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00404573
lea ecx, [ebp - 0xc8]
mov edi, eax
call fcn.00408d3a
cmp eax, dword [edi + 0x1c]
jne 0x408441
lea ecx, [ebp - 0x1c]
call fcn.00404573
add eax, 0x20
push 0x10
push eax
lea eax, [ebp + 0x480]
push eax
call fcn.0040a048
add esp, 0xc
test eax, eax
jne 0x408441
push str.PE_Md5_Matched
lea ecx, [ebp - 0x3c]
call dword [0x40b1d4]
push dword [0x411594]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 0x15
call fcn.0040420f
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call dword [0x40b1e0]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x13
call fcn.00408ed3
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call dword [0x40b1e0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x54]
call dword [0x40b1e0]
mov eax, esi
jmp 0x4084a2
push str._Analyze_PE_Failed
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [0x40b160]
push eax
mov byte [ebp - 4], 0x16
call fcn.00405008
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call dword [0x40b1e0]
push str.Analyze_PE_Failed
lea ecx, [ebp - 0x3c]
call dword [0x40b1d4]
push dword [0x411594]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040420f
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call dword [0x40b1e0]
push str._MD5_match_failed
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [0x40b160]
push eax
mov byte [ebp - 4], 0x18
call fcn.00405008
add esp, 0x10
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x14
call dword [0x40b1e0]
push dword [0x411594]
lea eax, [ebp + 0x54]
push eax
call fcn.0040586b
pop ecx
pop ecx
mov esi, eax
jmp 0x4083b0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call dword [0x40b1e0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x54]
call dword [0x40b1e0]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.00409ade
add ebp, 0x494
leave
ret