Function at 0x4037e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x427dc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x437b70
lea ecx, [esp + 0x14]
call fcn.00420a16
mov eax, dword [0x433ed8]
mov dword [esp + 0x238], 0
mov dword [esp + 0x18], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x240]
mov byte [esp + 0x238], 1
stosw word es:[edi], ax
mov edx, dword [ecx*4 + 0x4330e0]
mov ecx, esi
push edx
stosb byte es:[edi], al
call fcn.0041eb9c
mov ebp, eax
lea eax, [esp + 0x28]
push 0x104
push eax
mov ecx, ebp
call fcn.0041ec54
mov edi, 0x437b70
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4038b8
test cl, cl
je 0x4038b1
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4038b8
add eax, 2
add edi, 2
test cl, cl
jne 0x40388d
xor eax, eax
or ebx, 0xffffffff
jmp 0x4038c1
sbb eax, eax
mov ebx, 0xffffffff
sbb eax, ebx
test eax, eax
je 0x4038f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 0
call fcn.004209a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], ebx
call fcn.004209a8
mov eax, 1
jmp 0x403bcd
lea eax, [esp + 0x14]
push eax
call fcn.0041b524
mov eax, dword [esi + 0x22b0]
push str.AUTO
push eax
call fcn.0040db9f
add esp, 8
test eax, eax
jne 0x4039d1
push eax
lea ecx, [esp + 0x18]
call fcn.0041b537
mov ebx, dword [eax]
push 0
lea ecx, [esp + 0x18]
call fcn.0041b537
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
call fcn.0041b537
mov edx, dword [eax + 8]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], edx
call fcn.0041b537
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.0041b537
mov edi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x18]
inc edi
call fcn.0041b537
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x28]
push edx
add eax, 0x76c
push ecx
push edi
push eax
lea edx, [esp + 0x30]
push str._04d_02d_02d_02d_02d_02d
push edx
call fcn.0041b42d
mov eax, dword [esp + 0x260]
mov ecx, dword [esp + 0x38]
add esp, 0x20
lea edx, [esp + 0x10]
push eax
push ecx
push str._s__02d
push edx
call fcn.0041b42d
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebp
push eax
call fcn.0041ec2d
or ebx, 0xffffffff
jmp 0x403b3d
mov eax, dword [esi + 0x22b0]
push 0x433770
push eax
call fcn.0040db9f
add esp, 8
test eax, eax
jne 0x403a3f
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x2b3c]
lea ecx, [esp + 0x28]
push eax
push 0x64
push ecx
push 0x437b70
push str.FIX_VALUE
push str.SERIAL_NO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
push edx
push 0x4337ec
push eax
call fcn.0041b42d
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
mov ecx, ebp
call fcn.0041ec2d
jmp 0x403b3d
mov eax, dword [esi + 0x22b0]
push str.INCREMENT
push eax
call fcn.0040db9f
add esp, 8
test eax, eax
jne 0x403b25
mov ecx, 0x19
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x2b3c]
lea edx, [esp + 0x12c]
push eax
push 0x64
push edx
push 0x437b70
push str.INCREMENT_STRING
push str.SERIAL_NO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0x2b3c]
push eax
push 0
push str.INCREMENT_START
push str.SERIAL_NO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
lea eax, [esp + 0x12c]
push edi
push eax
lea ecx, [esp + 0x18]
push str._s_d
push ecx
call fcn.0041b42d
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, ebp
push edx
call fcn.0041ec2d
mov eax, dword [0x433ed8]
inc edi
mov dword [esp + 0x1c], eax
push edi
lea ecx, [esp + 0x20]
push 0x4337b0
push ecx
mov byte [esp + 0x244], 2
call fcn.0041b42d
mov eax, dword [esi + 0x2b3c]
mov edx, dword [esp + 0x28]
add esp, 0xc
push eax
push edx
push str.INCREMENT_START
push str.SERIAL_NO
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 1
call fcn.004209a8
jmp 0x403b3d
mov eax, dword [esi + 0x22b0]
push str.MANUAL
push eax
call fcn.0040db9f
add esp, 8
test eax, eax
jne 0x403b9c
mov eax, dword [esp + 0x240]
mov ecx, dword [eax*4 + 0x4330e0]
push ecx
mov ecx, esi
call fcn.0041eb9c
lea edx, [esp + 0x28]
push 0x104
push edx
mov ecx, eax
call fcn.0041ec54
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push 0x4337ec
push ecx
call fcn.0041b42d
mov edx, dword [esp + 0x1c]
push 0x437b70
push edx
call fcn.0040da1f
add esp, 0x14
test eax, eax
jne 0x4038c5
push eax
push 0x10
push str.Error_:_Empty_Serial_Number
jmp 0x403ba5
push 0
push 0
push str.Invalid_Serial_Number
call fcn.004236c6
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 0
call fcn.004209a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], ebx
call fcn.004209a8
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 4