Function at 0x438340
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a8cd8
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dl, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov cl, byte [esi + 0x24]
cmp cl, 0x92
je 0x438375
cmp cl, 0x96
je 0x438375
mov bl, 0x12
mov byte [esp + 0x11], bl
jmp 0x43837b
mov byte [esp + 0x11], dl
mov bl, dl
cmp cl, 0x92
je 0x438389
cmp cl, 0x96
je 0x438389
xor eax, eax
jmp 0x438391
xor eax, eax
mov al, byte [esi + 0x18d]
add al, 2
cmp cl, 0x92
mov byte [esp + 0x10], al
je 0x4383a6
cmp cl, 0x96
mov byte [esp + 0x12], 0x12
jne 0x4383aa
mov byte [esp + 0x12], dl
test byte [esi + 0x110], 8
je 0x4384c6
mov al, byte [esi + 0xf2]
mov cl, byte [esi + 0xec]
push 0x80
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.0043f110
lea eax, [esp + 0x40]
lea edx, [esp + 0x14]
push eax
push 0x80
push ecx
mov dword [esp + 0x64], 0
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.004a57ee
mov al, byte [esi + 0x24]
mov byte [esp + 0x64], 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4e60d8
call fcn.004a57ee
lea ecx, [esi + 0x120]
mov byte [esp + 0x6c], 0
call fcn.004584c0
mov ecx, dword [esp + 0x4c]
mov al, ch
imul cl
mov bl, al
mov al, byte [esi + 0x18d]
add bl, 8
inc al
mov byte [esp + 0x10], al
mov al, byte [esp + 0x4e]
test al, al
mov byte [esp + 0x11], bl
je 0x438452
imul ch
add al, 4
mov byte [esp + 0x12], al
jmp 0x438457
mov byte [esp + 0x12], 0
mov al, byte [esi + 0xec]
test al, al
jne 0x4384b5
push str.H27UAG8T2B
lea ecx, [esi + 0x124]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x438493
mov al, ch
imul cl
mov bl, al
mov al, byte [esi + 0x18d]
add bl, 2
inc al
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], al
test byte [esi + 0x15c], 2
je 0x4384b5
mov al, ch
imul cl
mov bl, al
mov al, byte [esi + 0x18d]
add bl, 4
inc al
mov byte [esp + 0x11], bl
mov byte [esp + 0x10], al
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp byte [esi + 0x12f], 2
jne 0x4384e8
mov al, byte [esi + 0x24]
cmp al, 0x92
je 0x4384df
cmp al, 0x96
mov eax, 2
jne 0x4384e4
mov eax, 4
add byte [esp + 0x10], al
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov cl, byte [esi + 0xf2]
mov dl, byte [esi + 0xec]
push 0
push 0x80
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x6c], 2
call fcn.0043ff30
push str.86_4K_MLC_01_L63.BIN
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x438533
mov bl, 0xe
mov byte [esp + 0x11], bl
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x31c]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4e5bb8]
push ecx
push eax
push str.ExtraReserveBlockNum
push str.Scan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov cl, byte [esi + 0x140]
mov byte [esp + 0x13], al
test cl, cl
jne 0x438584
lea edx, [esp + 0x20]
push 0x4d8340
push edx
mov dword [esp + 0x28], 0x30b00
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
and ecx, 0xff
mov al, byte [esi + 0x34]
cdq
idiv ecx
xor ecx, ecx
mov edx, dword [esi + 8]
mov cl, byte [esi + 0xa0]
inc ecx
imul eax, ecx
mov ecx, dword [edx + 0x3c4]
imul eax, dword [esi + 0x138]
test ecx, ecx
je 0x4385c7
cmp eax, 0x100
jbe 0x4385c7
cmp eax, 0x40000
jae 0x4385c7
mov byte [esi + 0xed], 2
xor ecx, ecx
mov cl, byte [esi + 0xed]
cmp ecx, 4
ja case.default.0x4385d8
jmp dword [ecx*4 + 0x438d6c]
mov al, byte [esi + 0x18d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x4386c3
mov al, byte [esi + 0x104]
cmp al, 0xff
je 0x43860b
cmp dl, al
jbe 0x43860b
mov al, byte [esp + 0x12]
test al, al
je 0x43860b
mov bl, al
mov eax, dword [esp + 0x14]
xor dx, dx
and eax, 0xff
mov dl, bl
mov di, word [esi + eax*2 + 0x29c]
add di, dx
mov word [esi + eax*2 + 0x31c], di
mov cx, word [esi + 0x18e]
mov edx, edi
mov ebp, ecx
and edx, 0xffff
and ebp, 0xffff
add edx, 8
cmp ebp, edx
jle 0x4386a3
mov cl, byte [esi + 0x104]
mov dl, byte [esp + 0x14]
cmp cl, 0xff
jne 0x438681
movzx cx, byte [esp + 0x13]
movzx di, byte [esp + 0x10]
add ecx, edi
mov byte [esi + 0x104], dl
add word [esi + eax*2 + 0x31c], cx
mov al, byte [esp + 0x18]
inc al
mov byte [esp + 0x18], al
jmp 0x4386af
cmp cl, dl
jne 0x43869d
movzx bp, byte [esp + 0x10]
movzx cx, byte [esp + 0x13]
add edi, ebp
add ecx, edi
mov word [esi + eax*2 + 0x31c], cx
inc byte [esp + 0x18]
jmp 0x4386af
mov dl, byte [esp + 0x14]
mov word [esi + eax*2 + 0x31c], cx
mov al, byte [esi + 0x18d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x4385f3
mov al, byte [esp + 0x18]
test al, al
ja case.default.0x4385d8
lea edx, [esp + 0x24]
push 0x4d8340
push edx
mov dword [esp + 0x2c], 0x50400
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esi + 0x18d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x4387db
mov cl, byte [esp + 0x12]
jmp 0x438708
mov cl, byte [esp + 0x12]
mov bl, byte [esp + 0x11]
mov al, byte [esi + 0x104]
cmp al, 0xff
je 0x438720
cmp dl, al
jbe 0x438720
test cl, cl
je 0x438720
mov bl, cl
mov byte [esp + 0x11], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
and eax, 0xff
mov di, word [esi + eax*2 + 0x29c]
add di, word [ecx + 0x1e8]
xor cx, cx
mov cl, bl
lea edi, [edi + ecx - 4]
mov word [esi + eax*2 + 0x31c], di
mov cx, word [esi + 0x18e]
mov ebx, edi
mov ebp, ecx
and ebx, 0xffff
and ebp, 0xffff
add ebx, 8
cmp ebp, ebx
jle 0x4387bf
mov cl, byte [esi + 0x104]
cmp cl, 0xff
jne 0x43879d
movzx cx, byte [esp + 0x13]
movzx di, byte [esp + 0x10]
add ecx, edi
mov byte [esi + 0x104], dl
add word [esi + eax*2 + 0x31c], cx
mov al, byte [esp + 0x18]
inc al
mov byte [esp + 0x18], al
jmp 0x4387c7
cmp cl, dl
jne 0x4387b9
movzx bx, byte [esp + 0x10]
movzx cx, byte [esp + 0x13]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x31c], cx
inc byte [esp + 0x18]
jmp 0x4387c7
mov word [esi + eax*2 + 0x31c], cx
mov al, byte [esi + 0x18d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x438700
mov al, byte [esp + 0x18]
test al, al
ja case.default.0x4385d8
lea edx, [esp + 0x28]
push 0x4d8340
push edx
mov dword [esp + 0x30], 0x50400
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esi + 0xec]
lea ecx, [esp + 0x18]
push eax
push 1
push ecx
mov ecx, esi
call fcn.00438d80
mov cl, byte [esp + 0x18]
mov byte [esi + 0xc4], 0
test cl, cl
jne 0x438839
lea edx, [esp + 0x2c]
push 0x4d8340
push edx
mov dword [esp + 0x34], 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 + 0x3a8]
cmp eax, ebx
inc cl
jae 0x438863
cmp cl, 0x14
mov byte [esp + 0x14], cl
jb 0x43883f
jmp 0x4388a3
mov byte [esi + 0xc4], cl
mov ecx, edx
mov edx, dword [esi + 8]
and ecx, 0xff
mov edi, dword [edx + ecx*4 + 0x26c]
test edi, edi
je 0x4388a3
mov dl, byte [edx + 0xa1]
and dl, 0xf0
cmp dl, 0x70
je 0x4388a3
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esi + ecx*4 + 0x3a8]
sub eax, edx
mov ecx, esi
push eax
call fcn.004390d0
mov al, byte [esi + 0xc4]
test al, al
jne 0x4388b4
mov byte [esi + 0xc4], 0x15
mov eax, dword [esi + 0x5848]
test eax, eax
je 0x4388eb
mov ecx, dword [esi + 8]
xor eax, eax
mov al, byte [esi + 0xc4]
mov edx, dword [ecx + eax*4 + 0x268]
test edx, edx
jne 0x4388eb
lea edx, [esp + 0x30]
push 0x4d8340
push edx
mov dword [esp + 0x38], 0x50400
call sub.MSVCRT.dll__CxxThrowException
cmp byte [esi + 0xec], 1
jne 0x438911
movzx ax, byte [esi + 0xc4]
mov ecx, dword [esi + 4]
sub eax, 0x5000
mov word [ecx*2 + 0x4e5b74], ax
jmp case.default.0x4385d8
movzx dx, byte [esi + 0xc4]
mov eax, dword [esi + 4]
sub edx, 0x4800
mov word [eax*2 + 0x4e5b74], dx
jmp case.default.0x4385d8
mov ebp, dword [edx + 0x1f0]
mov dword [esp + 0x30], ebp
mov ecx, dword [edx + 0x3c4]
mov edi, dword [edx + 0x1f4]
test ecx, ecx
je 0x43899a
cmp eax, 0x100
jbe 0x43899a
cmp eax, 0x40000
jae 0x43899a
xor bl, bl
mov byte [esp + 0x14], bl
mov ebp, 0x200
mov cl, bl
shl ebp, cl
cmp eax, ebp
je 0x43897f
inc bl
cmp bl, 0xa
jb 0x43895d
mov ebp, dword [esp + 0x30]
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
jmp 0x43899a
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
mov bl, byte [esp + 0x11]
and ecx, 0xff
mov edi, dword [edx + ecx*4 + 0x3c8]
mov ebp, edi
mov dl, byte [esi + 0xec]
lea eax, [esp + 0x18]
push edx
push 1
push eax
mov ecx, esi
call fcn.00438d80
mov cl, byte [esp + 0x18]
test cl, cl
jne 0x4389ce
lea ecx, [esp + 0x34]
push 0x4d8340
push ecx
mov dword [esp + 0x3c], 0x50400
call sub.MSVCRT.dll__CxxThrowException
shl ebp, 0xb
cmp eax, ebp
jae 0x438acb
mov al, byte [esi + 0x18d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x438abf
jmp 0x4389f3
mov bl, byte [esp + 0x11]
mov al, byte [esi + 0x104]
mov cl, byte [esp + 0x12]
cmp al, 0xff
je 0x438a0f
cmp dl, al
jbe 0x438a0f
test cl, cl
je 0x438a0f
mov bl, cl
mov byte [esp + 0x11], bl
mov eax, dword [esp + 0x14]
xor cx, cx
and eax, 0xff
mov cl, bl
mov di, word [esi + eax*2 + 0x29c]
add di, cx
mov word [esi + eax*2 + 0x31c], di
mov cx, word [esi + 0x18e]
mov ebx, edi
mov ebp, ecx
and ebx, 0xffff
and ebp, 0xffff
add ebx, 8
cmp ebp, ebx
jle 0x438aa3
mov cl, byte [esi + 0x104]
cmp cl, 0xff
jne 0x438a81
movzx cx, byte [esp + 0x13]
movzx di, byte [esp + 0x10]
add ecx, edi
mov byte [esi + 0x104], dl
add word [esi + eax*2 + 0x31c], cx
mov al, byte [esp + 0x18]
inc al
mov byte [esp + 0x18], al
jmp 0x438aab
cmp cl, dl
jne 0x438a9d
movzx bx, byte [esp + 0x10]
movzx cx, byte [esp + 0x13]
add edi, ebx
add ecx, edi
mov word [esi + eax*2 + 0x31c], cx
inc byte [esp + 0x18]
jmp 0x438aab
mov word [esi + eax*2 + 0x31c], cx
mov al, byte [esi + 0x18d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x4389ef
mov byte [esi + 0x83a], 1
jmp case.default.0x4385d8
shl edi, 0xb
mov ecx, edi
cmp eax, ecx
jbe case.default.0x4385d8
xor edx, edx
sub eax, ecx
mov dl, byte [esi + 0x192]
xor bl, bl
mov edi, edx
xor edx, edx
mov dx, word [esi + 0x190]
mov byte [esp + 0x14], bl
imul edi, edx
xor edx, edx
div edi
test eax, eax
jle case.default.0x4385d8
mov cl, byte [esi + 0x104]
cmp cl, bl
mov ecx, dword [esp + 0x14]
jne 0x438b38
and ecx, 0xff
xor edi, edi
mov di, word [esi + 0x18e]
mov dx, word [esi + ecx*2 + 0x31c]
sub edi, 0xa
mov ebp, edx
and ebp, 0xffff
cmp ebp, edi
jge 0x438b59
jmp 0x438b4f
and ecx, 0xff
mov dx, word [esi + ecx*2 + 0x31c]
cmp dx, word [esi + 0x18e]
jae 0x438b59
inc edx
dec eax
mov word [esi + ecx*2 + 0x31c], dx
xor edx, edx
mov dl, byte [esi + 0x18d]
dec edx
cmp ecx, edx
jge 0x438b6a
inc bl
jmp 0x438b6c
xor bl, bl
test eax, eax
mov byte [esp + 0x14], bl
jg 0x438b02
jmp case.default.0x4385d8
push 0
push 0
mov ecx, esi
call fcn.004522f0
mov edx, dword [esi + 0xa4]
mov ecx, eax
mov eax, dword [esi + 8]
sub edx, ecx
imul edx, dword [eax + 0x1f8]
mov eax, 0x51eb851f
mul edx
mov al, byte [esi + 0x18d]
mov edi, edx
shr edi, 5
add edi, ecx
xor dl, dl
test al, al
mov dword [esp + 0x20], edi
mov byte [esp + 0x14], dl
jbe 0x438cb8
mov al, byte [esi + 0x104]
cmp al, 0xff
je 0x438bd6
cmp dl, al
jbe 0x438bd6
mov al, byte [esp + 0x12]
test al, al
je 0x438bd6
mov bl, al
mov al, byte [esp + 0x18]
xor cx, cx
inc al
mov cl, bl
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x14]
and eax, 0xff
xor ebp, ebp
mov di, word [esi + eax*2 + 0x29c]
add di, cx
mov ecx, edi
mov word [esi + eax*2 + 0x31c], di
mov bp, word [esi + 0x18e]
and ecx, 0xffff
add ecx, 8
cmp ebp, ecx
jle 0x438c5e
mov cl, byte [esi + 0x104]
cmp cl, 0xff
jne 0x438c42
movzx cx, byte [esp + 0x13]
movzx di, byte [esp + 0x10]
add ecx, edi
mov byte [esi + 0x104], dl
add word [esi + eax*2 + 0x31c], cx
jmp 0x438c5e
cmp cl, dl
jne 0x438c5e
movzx bp, byte [esp + 0x10]
movzx cx, byte [esp + 0x13]
add edi, ebp
add ecx, edi
mov word [esi + eax*2 + 0x31c], cx
mov cx, word [esi + 0x18e]
xor edi, edi
mov di, word [esi + eax*2 + 0x31c]
mov ebp, ecx
add edi, 2
and ebp, 0xffff
cmp edi, ebp
jl 0x438c90
mov word [esi + eax*2 + 0x31c], cx
mov cl, byte [esp + 0x18]
dec cl
mov byte [esp + 0x18], cl
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [esi + eax*2 + 0x31c]
mov al, byte [esi + 0x18d]
sub edi, ecx
inc dl
cmp dl, al
mov dword [esp + 0x20], edi
mov byte [esp + 0x14], dl
jb 0x438bbe
mov al, byte [esp + 0x18]
test al, al
ja 0x438cd7
lea edx, [esp + 0x38]
push 0x4d8340
push edx
mov dword [esp + 0x40], 0x50400
call sub.MSVCRT.dll__CxxThrowException
test edi, edi
jge 0x438cf2
lea eax, [esp + 0x3c]
push 0x4d8340
push eax
mov dword [esp + 0x44], 0x50400
call sub.MSVCRT.dll__CxxThrowException
jle case.default.0x4385d8
mov al, byte [esi + 0x18d]
xor dl, dl
test al, al
mov byte [esp + 0x14], dl
jbe 0x438d3f
mov ecx, dword [esp + 0x14]
and ecx, 0xff
lea eax, [esi + ecx*2 + 0x31c]
mov cx, word [esi + ecx*2 + 0x31c]
cmp cx, word [esi + 0x18e]
jae 0x438d2b
inc ecx
dec edi
mov word [eax], cx
test edi, edi
jle case.default.0x4385d8
mov al, byte [esi + 0x18d]
inc dl
cmp dl, al
mov byte [esp + 0x14], dl
jb 0x438d04
test edi, edi
jg 0x438cf4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret