Function at 0x4204e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
lea eax, [esp + 0xd]
push edi
mov esi, ecx
push eax
mov byte [esp + 0x15], 0
call fcn.00420390
mov bl, al
mov ecx, esi
mov byte [esp + 0x13], bl
mov byte [esp + 0x18], 0
call fcn.0041f180
mov ebp, eax
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x41f4]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4971e8]
mov dword [esp + 0x14], ebp
push ecx
push eax
push str.ExtraReserveBlockNum
push str.Scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esp + 0x12], al
xor eax, eax
mov al, byte [esi + 0x2c]
xor ecx, ecx
mov cl, byte [esi + 0x120]
cdq
idiv ecx
xor edx, edx
mov dl, byte [esi + 0x98]
inc edx
imul eax, edx
mov edx, dword [esi + 8]
imul eax, dword [esi + 0x118]
mov ecx, dword [edx + 0x3ec]
test ecx, ecx
je 0x420580
cmp eax, 0x100
jbe 0x420580
cmp eax, 0x40000
jae 0x420580
mov byte [esi + 0xe5], 2
xor ecx, ecx
mov cl, byte [esi + 0xe5]
cmp ecx, 4
ja case.default.0x420591
jmp dword [ecx*4 + 0x420c5c]
mov al, byte [esi + 0x16d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x42066c
xor ax, ax
mov al, bl
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
and eax, 0xff
mov cx, word [esi + eax*2 + 0x5fee]
add cx, word [esi + eax*2 + 0x4174]
add edi, ecx
mov word [esi + eax*2 + 0x41f4], di
mov cx, word [esi + 0x16e]
mov ebx, edi
mov ebp, ecx
and ebx, 0xffff
and ebp, 0xffff
add ebx, 8
cmp ebp, ebx
jle 0x420650
mov cl, byte [esi + 0xac]
cmp cl, 0xff
jne 0x42062e
movzx cx, byte [esp + 0x12]
movzx di, byte [esp + 0x11]
add ecx, edi
mov byte [esi + 0xac], dl
add word [esi + eax*2 + 0x41f4], cx
mov al, byte [esp + 0x18]
inc al
mov byte [esp + 0x18], al
jmp 0x420658
cmp cl, dl
jne 0x42064a
movzx bx, byte [esp + 0x11]
movzx cx, byte [esp + 0x12]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x41f4], cx
inc byte [esp + 0x18]
jmp 0x420658
mov word [esi + eax*2 + 0x41f4], cx
mov al, byte [esi + 0x16d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x4205b6
mov al, byte [esp + 0x18]
test al, al
ja case.default.0x420591
lea edx, [esp + 0x20]
push 0x48d780
push edx
mov dword [esp + 0x28], 0x50400
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esi + 0x16d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x42076f
xor ax, ax
mov al, bl
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 8]
and eax, 0xff
mov cx, word [esi + eax*2 + 0x5fee]
add cx, word [esi + eax*2 + 0x4174]
add cx, word [edi + 0x1b4]
mov edi, dword [esp + 0x1c]
lea edi, [ecx + edi - 4]
mov word [esi + eax*2 + 0x41f4], di
mov cx, word [esi + 0x16e]
mov ebx, edi
mov ebp, ecx
and ebx, 0xffff
and ebp, 0xffff
add ebx, 8
cmp ebp, ebx
jle 0x420753
mov cl, byte [esi + 0xac]
cmp cl, 0xff
jne 0x420731
movzx cx, byte [esp + 0x12]
movzx di, byte [esp + 0x11]
add ecx, edi
mov byte [esi + 0xac], dl
add word [esi + eax*2 + 0x41f4], cx
mov al, byte [esp + 0x18]
inc al
mov byte [esp + 0x18], al
jmp 0x42075b
cmp cl, dl
jne 0x42074d
movzx bx, byte [esp + 0x11]
movzx cx, byte [esp + 0x12]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x41f4], cx
inc byte [esp + 0x18]
jmp 0x42075b
mov word [esi + eax*2 + 0x41f4], cx
mov al, byte [esi + 0x16d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x4206ad
mov al, byte [esp + 0x18]
test al, al
ja case.default.0x420591
lea edx, [esp + 0x24]
push 0x48d780
push edx
mov dword [esp + 0x2c], 0x50400
call sub.MSVCRT.dll__CxxThrowException
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, esi
call fcn.00420c70
mov cl, byte [esp + 0x18]
mov byte [esi + 0xc8], 0
test cl, cl
jne 0x4207c6
lea ecx, [esp + 0x28]
push 0x48d780
push ecx
mov dword [esp + 0x30], 0x50400
call sub.MSVCRT.dll__CxxThrowException
xor cl, cl
mov byte [esp + 0x14], cl
mov edx, dword [esp + 0x14]
mov edi, edx
and edi, 0xff
mov ebx, dword [esi + edi*4 + 0x4280]
cmp eax, ebx
inc cl
jae 0x4207f0
cmp cl, 0x14
mov byte [esp + 0x14], cl
jb 0x4207cc
jmp 0x420830
mov byte [esi + 0xc8], cl
mov ecx, edx
mov edx, dword [esi + 8]
and ecx, 0xff
mov edi, dword [edx + ecx*4 + 0x20c]
test edi, edi
je 0x420830
mov dl, byte [edx + 0x85]
and dl, 0xf0
cmp dl, 0x70
je 0x420830
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esi + ecx*4 + 0x4280]
sub eax, edx
mov ecx, esi
push eax
call fcn.00420e00
mov al, byte [esi + 0xc8]
test al, al
jne 0x420841
mov byte [esi + 0xc8], 0x15
mov al, byte [esi + 0xe4]
mov edx, dword [esi + 4]
movzx cx, byte [esi + 0xc8]
dec al
pop edi
neg al
sbb eax, eax
pop esi
and eax, 0x800
pop ebp
add eax, 0xb000
pop ebx
add eax, ecx
mov word [edx*2 + 0x4971ac], ax
mov eax, 1
add esp, 0x28
ret
mov ebx, dword [edx + 0x1bc]
mov dword [esp + 0x28], ebx
mov ecx, dword [edx + 0x3ec]
mov edi, dword [edx + 0x1c0]
test ecx, ecx
je 0x4208e3
cmp eax, 0x100
jbe 0x4208e3
cmp eax, 0x40000
jae 0x4208e3
xor bl, bl
mov byte [esp + 0x1c], bl
mov ebp, 0x200
mov cl, bl
shl ebp, cl
cmp eax, ebp
je 0x4208c9
inc bl
cmp bl, 0xa
jb 0x4208a7
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x1c], bl
mov ebx, dword [esp + 0x28]
jmp 0x4208e3
mov byte [esp + 0x1c], bl
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov edi, dword [edx + eax*4 + 0x3f0]
mov ebx, edi
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
call fcn.00420c70
mov cl, byte [esp + 0x18]
test cl, cl
jne 0x420910
lea edx, [esp + 0x2c]
push 0x48d780
push edx
mov dword [esp + 0x34], 0x50400
call sub.MSVCRT.dll__CxxThrowException
shl ebx, 0xb
cmp eax, ebx
jae 0x4209e3
mov al, byte [esi + 0x16d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x4209cf
mov eax, dword [esp + 0x14]
movzx cx, byte [esp + 0x13]
and eax, 0xff
mov di, word [esi + eax*2 + 0x5fee]
add di, word [esi + eax*2 + 0x4174]
add edi, ecx
mov word [esi + eax*2 + 0x41f4], di
mov cx, word [esi + 0x16e]
mov ebx, edi
mov ebp, ecx
and ebx, 0xffff
and ebp, 0xffff
add ebx, 8
cmp ebp, ebx
jle 0x4209b3
mov cl, byte [esi + 0xac]
cmp cl, 0xff
jne 0x42099f
movzx cx, byte [esp + 0x12]
movzx di, byte [esp + 0x11]
add ecx, edi
mov byte [esi + 0xac], dl
add word [esi + eax*2 + 0x41f4], cx
jmp 0x4209bb
cmp cl, dl
jne 0x4209bb
movzx bx, byte [esp + 0x11]
movzx cx, byte [esp + 0x12]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x41f4], cx
mov al, byte [esi + 0x16d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x42092f
mov byte [esi + 0x469b], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
shl edi, 0xb
mov ecx, edi
cmp eax, ecx
jbe case.default.0x420591
xor edx, edx
and ebp, 0xffff
mov dl, byte [esi + 0x172]
sub eax, ecx
mov edi, edx
xor edx, edx
imul edi, ebp
div edi
xor bl, bl
mov byte [esp + 0x14], bl
test eax, eax
jle case.default.0x420591
mov cl, byte [esi + 0xac]
cmp cl, bl
mov ecx, dword [esp + 0x14]
jne 0x420a4d
and ecx, 0xff
xor edi, edi
mov di, word [esi + 0x16e]
mov dx, word [esi + ecx*2 + 0x41f4]
sub edi, 0xa
mov ebp, edx
and ebp, 0xffff
cmp ebp, edi
jge 0x420a6e
jmp 0x420a64
and ecx, 0xff
mov dx, word [esi + ecx*2 + 0x41f4]
cmp dx, word [esi + 0x16e]
jae 0x420a6e
inc edx
dec eax
mov word [esi + ecx*2 + 0x41f4], dx
xor edx, edx
mov dl, byte [esi + 0x16d]
dec edx
cmp ecx, edx
jge 0x420a7f
inc bl
jmp 0x420a81
xor bl, bl
test eax, eax
mov byte [esp + 0x14], bl
jg 0x420a17
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push 0
push 0
mov ecx, esi
call fcn.00427040
mov edx, dword [esi + 0x9c]
mov ecx, eax
mov eax, dword [esi + 8]
sub edx, ecx
imul edx, dword [eax + 0x1c4]
mov eax, 0x51eb851f
mul edx
mov al, byte [esi + 0x16d]
mov ebp, edx
shr ebp, 5
add ebp, ecx
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x420bc1
xor cx, cx
mov cl, bl
mov word [esp + 0x1c], cx
mov al, byte [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc al
xor ebx, ebx
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x14]
and eax, 0xff
mov cx, word [esi + eax*2 + 0x5fee]
add cx, word [esi + eax*2 + 0x4174]
add edi, ecx
mov ecx, edi
mov word [esi + eax*2 + 0x41f4], di
mov bx, word [esi + 0x16e]
and ecx, 0xffff
add ecx, 8
cmp ebx, ecx
jle 0x420b6f
mov cl, byte [esi + 0xac]
cmp cl, 0xff
jne 0x420b53
movzx cx, byte [esp + 0x12]
movzx di, byte [esp + 0x11]
add ecx, edi
mov byte [esi + 0xac], dl
add word [esi + eax*2 + 0x41f4], cx
jmp 0x420b6f
cmp cl, dl
jne 0x420b6f
movzx bx, byte [esp + 0x11]
movzx cx, byte [esp + 0x12]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x41f4], cx
mov cx, word [esi + 0x16e]
xor edi, edi
mov di, word [esi + eax*2 + 0x41f4]
mov ebx, ecx
add edi, 2
and ebx, 0xffff
cmp edi, ebx
jl 0x420ba1
mov word [esi + eax*2 + 0x41f4], cx
mov cl, byte [esp + 0x18]
dec cl
mov byte [esp + 0x18], cl
xor ecx, ecx
mov cx, word [esi + eax*2 + 0x41f4]
mov al, byte [esi + 0x16d]
sub ebp, ecx
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x420ae1
mov al, byte [esp + 0x18]
test al, al
ja 0x420be0
lea edx, [esp + 0x30]
push 0x48d780
push edx
mov dword [esp + 0x38], 0x50400
call sub.MSVCRT.dll__CxxThrowException
test ebp, ebp
jge 0x420bfb
lea eax, [esp + 0x34]
push 0x48d780
push eax
mov dword [esp + 0x3c], 0x50400
call sub.MSVCRT.dll__CxxThrowException
jle case.default.0x420591
mov al, byte [esi + 0x16d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x420c48
mov ecx, dword [esp + 0x14]
and ecx, 0xff
lea eax, [esi + ecx*2 + 0x41f4]
mov cx, word [esi + ecx*2 + 0x41f4]
cmp cx, word [esi + 0x16e]
jae 0x420c34
inc ecx
dec ebp
mov word [eax], cx
test ebp, ebp
jle case.default.0x420591
mov al, byte [esi + 0x16d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x420c0d
test ebp, ebp
jg 0x420bfd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret