Function at 0x40a690
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x425851
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x42f5ac]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f5ac]
xor eax, esp
push eax
lea eax, [esp + 0x6a0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6b0]
mov edi, dword [esp + 0x6b4]
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x221]
push ebx
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x20], edi
mov byte [esp + 0x228], bl
call fcn.00410e90
push 0x3ff
lea ecx, [esp + 0x2ad]
push ebx
push ecx
mov byte [esp + 0x2b4], bl
call fcn.00410e90
mov eax, 0xf
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6c0], ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
lea eax, [edi + 0x94]
push str.patches.ini
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x6cc], 2
mov dword [esp + 0x60], eax
call fcn.00402a40
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x6b4], 3
call fcn.004014c0
mov esi, 0x10
mov byte [esp + 0x6a8], 2
cmp dword [esp + 0x30], esi
jb 0x40a7b3
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x40a7c1
lea eax, [esp + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x400
lea ecx, [esp + 0x2a4]
push ecx
push 0x42663e
push str.ProductID
push ebp
call esi
lea eax, [esp + 0x29c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a7f0
sub eax, edx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [edi + 0xb0]
call fcn.004015a0
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x40a81c
lea eax, [esp + 0x54]
push eax
push 0x400
lea eax, [esp + 0x2a4]
push eax
push 0x42663e
push str.EFISystem
push ebp
call esi
cmp byte [esp + 0x29c], 0
je 0x40a864
lea eax, [esp + 0x29c]
lea edx, [eax + 1]
jmp 0x40a850
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a850
sub eax, edx
push eax
lea ecx, [esp + 0x2a0]
push ecx
jmp 0x40a86a
push ebx
push 0x42663e
lea ecx, [edi + 0xe8]
call fcn.004015a0
mov esi, dword [esp + 0x3c]
push str.config.xml
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00402a40
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0x6b4], 4
call fcn.004014c0
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40a8c0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410663
add esp, 4
push 0x4275ac
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00402a40
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x6b4], 5
call fcn.004014c0
mov esi, 0x10
mov byte [esp + 0x6a8], 2
cmp dword [esp + 0x30], esi
jb 0x40a90b
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], esi
jae 0x40a922
lea eax, [esp + 0x8c]
push 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
je 0x40ba68
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0xbc], esi
jae 0x40a94b
lea eax, [esp + 0xa8]
lea ecx, [esp + 0xdc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x40a99a
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xcc]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], 0
call fcn.004014c0
call fcn.0040a2f0
add esp, 0x20
jmp 0x40a99f
mov edi, 0xf
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x40a9b2
lea eax, [esp + 0x54]
push eax
push 0x400
lea eax, [esp + 0x2a4]
push eax
push 0x42663e
push str.PatchFile
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
jne 0x40aa4d
cmp dword [esp + 0xa0], esi
jb 0x40a9f4
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.00410663
add esp, 4
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], 0
cmp dword [esp + 0xbc], esi
jb 0x40aa23
mov edx, dword [esp + 0xa8]
push edx
call fcn.00410663
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x68], esi
jb 0x40bb1f
mov eax, dword [esp + 0x54]
push eax
jmp 0x40bb17
push 0x18c
call fcn.0041095c
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x6a8], 6
cmp eax, ebx
je 0x40aa73
mov ecx, eax
call fcn.004091c0
jmp 0x40aa75
xor eax, eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x6a8], 2
cmp eax, ebx
je 0x40b9b3
mov edi, dword [esp + 0x38]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aa92
mov ebp, dword [esp + 0x34]
sub eax, edx
push eax
push edi
mov ecx, ebp
call fcn.004015a0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x29c]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00402a40
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x70]
mov byte [esp + 0x6b4], 7
call fcn.004014c0
mov ebx, 0x10
mov byte [esp + 0x6a8], 2
cmp dword [esp + 0x30], ebx
jb 0x40aaf7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x40ab05
lea eax, [esp + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
push str.Description
push edi
call esi
lea eax, [esp + 0x29c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab30
sub eax, edx
push eax
lea eax, [esp + 0x2a0]
push eax
lea ecx, [ebp + 0x38]
call fcn.004015a0
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x40ab58
lea eax, [esp + 0x54]
push eax
push 0x400
lea ecx, [esp + 0x2a4]
push ecx
push 0x42663e
push str.ShortDescription
push edi
call esi
lea eax, [esp + 0x29c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab80
sub eax, edx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [ebp + 0x1c]
call fcn.004015a0
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x40aba8
lea eax, [esp + 0x54]
push eax
push 0x400
lea eax, [esp + 0x2a4]
push eax
push 0x42663e
push str.InfoFile
push edi
call esi
cmp byte [esp + 0x29c], 0
je 0x40ac0d
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x29c]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00402a40
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x54]
mov byte [esp + 0x6b4], 8
call fcn.004014c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a8], 2
call fcn.004027d0
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebx
jae 0x40ac1b
lea eax, [esp + 0x54]
push eax
push 0x400
lea ecx, [esp + 0x2a4]
push ecx
push 0x42663e
push str.DefaultAction
push edi
call esi
cmp byte [esp + 0x29c], 0
jne 0x40ac55
lea edx, [esp + 0x29c]
push 0x42755c
push edx
call fcn.00410748
add esp, 8
push 0x42755c
lea ecx, [esp + 0x1c]
call fcn.00403b00
lea eax, [esp + 0x29c]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x6ac], 9
call fcn.00403b00
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x6b0], 0xa
call fcn.0040d150
add esp, 8
test eax, eax
mov esi, 0x10
sete bl
cmp dword [esp + 0x84], esi
jb 0x40acb6
mov eax, dword [esp + 0x70]
push eax
call fcn.00410663
add esp, 4
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov byte [esp + 0x6a8], 2
cmp dword [esp + 0x30], esi
jb 0x40acec
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410663
add esp, 4
mov esi, dword [esp + 0x14]
test bl, bl
je 0x40acfe
mov dword [esi + 0x10c], 2
push str.Restart
lea ecx, [esp + 0x1c]
call fcn.00403b00
lea edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x6ac], 0xb
call fcn.00403b00
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
mov byte [esp + 0x6b0], 0xc
call fcn.0040d150
add esp, 8
test eax, eax
sete bl
cmp dword [esp + 0x84], 0x10
jb 0x40ad5b
mov edx, dword [esp + 0x70]
push edx
call fcn.00410663
add esp, 4
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov byte [esp + 0x6a8], 2
jb 0x40ad92
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410663
add esp, 4
test bl, bl
je 0x40ada0
mov dword [esi + 0x10c], 1
push str.NoAction
lea ecx, [esp + 0x1c]
call fcn.00403b00
lea ecx, [esp + 0x29c]
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x6ac], 0xd
call fcn.00403b00
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x6b0], 0xe
call fcn.0040d150
add esp, 8
test eax, eax
sete bl
cmp dword [esp + 0x84], 0x10
jb 0x40adfd
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00410663
add esp, 4
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
mov byte [esp + 0x6a8], 2
jb 0x40ae34
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
test bl, bl
je 0x40ae42
mov dword [esi + 0x10c], 0
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
jae 0x40ae51
lea eax, [esp + 0x54]
push eax
xor ebx, ebx
push ebx
push str.EncryptionOn
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp + 0x8c], eax
mov eax, dword [esi + 0xe4]
cmp eax, ebx
jbe 0x40b195
mov ecx, 0xf
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov ecx, dword [esi + 0xe0]
mov ecx, dword [ecx]
mov edx, dword [esi + 0xcc]
mov byte [esp + 0x6a8], 0x10
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jle 0x40b148
mov ebp, ecx
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40aef6
call fcn.00410931
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40aee4
call fcn.00410931
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x40aefa
mov ecx, dword [eax + 4]
jmp 0x40aefd
mov eax, dword [eax]
jmp 0x40aeda
lea ecx, [eax + 4]
mov edx, dword [esp + 0xc4]
cmp dword [esp + 0xd8], esi
jae 0x40af14
lea edx, [esp + 0xc4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40af14
mov ecx, dword [esp + 0xc4]
cmp dword [esp + 0xd8], esi
jae 0x40af35
lea ecx, [esp + 0xc4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
add eax, 0x170
cmp dword [eax + 0x18], esi
jb 0x40af4b
mov eax, dword [eax + 4]
jmp 0x40af4e
add eax, 4
push ecx
push eax
call fcn.00410f10
add esp, 8
test eax, eax
je 0x40b0f2
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40b0d9
call fcn.00410931
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40af7d
call fcn.00410931
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x34], 0
jbe 0x40b0f2
lea ecx, [esp + 0x40]
call fcn.00403830
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov ecx, dword [ecx]
mov ebx, dword [eax + 0x1c]
add eax, 0x1c
mov edi, ecx
mov dword [esp + 0x4c], edi
jmp 0x40afb0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40b0e0
call fcn.00410931
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40afcd
call fcn.00410931
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x30]
add eax, 0x1c
mov eax, dword [eax]
test ebx, ebx
je 0x40afe0
cmp ebx, eax
je 0x40afe5
call fcn.00410931
cmp edi, esi
je 0x40b0f2
test ebx, ebx
jne 0x40b0e7
call fcn.00410931
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x40b006
call fcn.00410931
push 0xffffffffffffffff
lea eax, [edi + 8]
push 0
push eax
lea ecx, [esp + 0x78]
call fcn.004014c0
cmp dword [esp + 0x84], 0x10
mov ecx, dword [esp + 0x70]
jae 0x40b029
lea ecx, [esp + 0x70]
mov eax, ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b043
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov esi, dword [esp + 0x34]
mov edi, dword [esi + 0xa4]
mov eax, dword [edi + 4]
add esi, 0x90
lea edx, [esp + 0x18]
push edx
push eax
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x11
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 0x10
jb 0x40b0af
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00410663
add esp, 4
test ebx, ebx
jne 0x40b0ee
call fcn.00410931
xor eax, eax
mov esi, dword [esp + 0x4c]
cmp esi, dword [eax + 0x14]
jne 0x40b0c8
call fcn.00410931
mov edx, dword [esi]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x4c], edx
mov edi, edx
jmp 0x40afb0
mov eax, dword [eax]
jmp 0x40af73
mov eax, dword [eax]
jmp 0x40afc3
mov eax, dword [ebx]
jmp 0x40affc
mov eax, dword [ebx]
jmp 0x40b0ba
mov eax, dword [esp + 0x40]
inc dword [esp + 0x3c]
test eax, eax
jne 0x40b18e
call fcn.00410931
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x40b113
call fcn.00410931
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0xe4]
mov ebp, dword [ebp]
mov dword [esp + 0x44], ebp
jl 0x40aecb
cmp dword [esp + 0xd8], 0x10
jb 0x40b148
mov edx, dword [esp + 0xc4]
push edx
call fcn.00410663
add esp, 4
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
mov byte [esp + 0x6a8], 2
jb 0x40b244
mov eax, dword [esp + 0x70]
push eax
call fcn.00410663
add esp, 4
jmp 0x40b244
mov eax, dword [eax]
jmp 0x40b109
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 1
push esi
push str.Depend
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b1ca
lea eax, [esp + 0x54]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push edi
call ebx
cmp byte [esp + 0x29c], 0
je 0x40b244
lea ecx, [esp + 0x29c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403b00
lea edx, [esp + 0x18]
push edx
lea ecx, [ebp + 0x90]
mov byte [esp + 0x6ac], 0x12
call fcn.00404d50
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b237
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410663
add esp, 4
inc esi
cmp esi, 0x80
jl 0x40b1a0
mov ebx, 1
lea esp, [esp]
push ebx
push str.PCFileName
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b27a
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b350
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b2d0
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov esi, dword [esp + 0x34]
mov edi, dword [esi + 0xc0]
mov ecx, dword [edi + 4]
add esi, 0xac
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x13
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b343
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
inc ebx
cmp ebx, 0x80
jl 0x40b250
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push 0x427524
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b38e
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b464
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b3e1
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0xdc]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0xc8]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x14
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b450
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b360
mov dword [esp + 0x14], 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push 0x427520
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b49e
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b574
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b4f1
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0xf8]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0xe4]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x15
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b560
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b470
mov dword [esp + 0x14], 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push 0x42751c
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b5ae
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b684
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b601
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0x114]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0x100]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x16
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b670
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b580
mov dword [esp + 0x14], 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push 0x427518
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b6be
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b794
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b711
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0x130]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0x11c]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x17
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b780
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b690
mov dword [esp + 0x14], 1
lea esp, [esp]
mov eax, dword [esp + 0x14]
push eax
push 0x427514
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b7ce
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b8a4
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b821
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0x14c]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0x138]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x18
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b890
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b7a0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
push eax
push 0x427510
lea ecx, [esp + 0x224]
push str._s_d
push ecx
call fcn.00410748
mov eax, dword [esp + 0x64]
add esp, 0x10
cmp dword [esp + 0x68], 0x10
jae 0x40b8da
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x38]
push eax
push 0x400
lea edx, [esp + 0x2a4]
push edx
push 0x42663e
lea eax, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x29c], 0
je 0x40b9b3
lea eax, [esp + 0x29c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b930
sub eax, ecx
push eax
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x20]
call fcn.004015a0
mov edi, dword [ebx + 0x168]
mov ecx, dword [edi + 4]
lea esi, [ebx + 0x154]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov byte [esp + 0x6b4], 0x19
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x6a8], 2
jb 0x40b99f
mov edx, dword [esp + 0x1c]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x80
mov dword [esp + 0x14], eax
jl 0x40b8ac
mov ecx, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x40b9c6
lea ecx, [esp + 0x54]
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0x88], esi
jb 0x40b9d7
mov eax, dword [ebp + 0x74]
jmp 0x40b9da
lea eax, [ebp + 0x74]
push ecx
push eax
push str.CreatePatchInfo:_for__s__ini_filename__s__n
call fcn.0040e850
add esp, 0xc
cmp dword [esp + 0xa0], esi
jb 0x40ba02
mov eax, dword [esp + 0x8c]
push eax
call fcn.00410663
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
cmp dword [esp + 0xbc], esi
jb 0x40ba38
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00410663
add esp, 4
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], edi
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x68], esi
jb 0x40ba61
mov edx, dword [esp + 0x54]
push edx
call fcn.00410663
add esp, 4
mov eax, ebp
jmp 0x40bb21
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], esi
jae 0x40ba7f
lea eax, [esp + 0x8c]
push 0x4270e8
push eax
push str.CreatePatchInfo_:_Unable_to_load_the_xerces_library_:
push 0x430b48
call fcn.00409c60
add esp, 8
push eax
call fcn.00409c60
add esp, 8
push eax
call fcn.00409c60
add esp, 8
cmp dword [esp + 0xa0], esi
jb 0x40bac2
mov eax, dword [esp + 0x8c]
push eax
call fcn.00410663
add esp, 4
mov edi, 0xf
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], 0
cmp dword [esp + 0xbc], esi
jb 0x40baf6
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.00410663
add esp, 4
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x68], esi
jb 0x40bb1f
mov edx, dword [esp + 0x54]
push edx
call fcn.00410663
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x6a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.004107c5
add esp, 0x698
ret