Function at 0x402290
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4776f1
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4a9128]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov dword [esp + 0x34], ecx
call fcn.00434e50
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4022eb
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x144], ebp
call fcn.00434e50
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40231c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x144], 1
call fcn.00434e50
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40234e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x100
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov byte [esp + 0x150], 2
call fcn.0045d2b0
push str.winhjtools.dll
lea edx, [esp + 0x28]
push 0x4aa948
push edx
call fcn.00401d00
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x18
push eax
push 0xff
lea eax, [esp + 0x40]
push eax
push 0x481930
push 0x4819d0
push 0x4819cc
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x38]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4023d8
sub eax, ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401910
push str.winhjtools.dll
lea edx, [esp + 0x1c]
push 0x4aa948
push edx
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push 0xff
lea eax, [esp + 0x40]
push eax
push 0x481930
push 0x4819c8
push 0x4819cc
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402450
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401910
mov eax, dword [0x4aaa60]
cmp eax, ebp
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
jle 0x402518
test ebp, ebp
jl 0x402596
cmp ebp, dword [0x4aaa60]
jge 0x402596
mov edx, dword [0x4aaa5c]
mov ecx, dword [edx + ebp*4]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4024f5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4024e3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4024e3
push eax
call fcn.00401180
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4024da
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], edi
jmp 0x4024f5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
push edi
push ecx
call fcn.0045c990
add esp, 8
test eax, eax
je 0x40258c
add ebp, 1
cmp ebp, dword [esp + 0x24]
jl 0x402483
mov eax, dword [0x4aaa74]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], eax
jle 0x40262f
test ebx, ebx
jl 0x402596
cmp ebx, dword [0x4aaa74]
jge 0x402596
mov edx, dword [0x4aaa70]
mov eax, dword [edx + ebx*4]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x402606
cmp dword [ebp + 0xc], 0
jl 0x4025f4
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x4025f4
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40259b
cmp eax, dword [esi]
jne 0x40259b
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4025d1
mov dword [esp + 0x1c], 0
jmp 0x402518
jmp fcn.00433e1f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4026e0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045cd8f
add esp, 0x10
lea eax, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4025eb
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x402606
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push edi
push eax
call fcn.0045c990
add esp, 8
test eax, eax
je 0x402627
add ebx, 1
cmp ebx, dword [esp + 0x28]
jl 0x402533
jmp 0x40262f
mov dword [esp + 0x18], 0
push 0
call fcn.0045cd53
push eax
call fcn.0045d280
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x40289c
cmp dword [esp + 0x24], 1
jl 0x40289c
call fcn.0045d28d
cdq
idiv dword [esp + 0x24]
mov ebx, edx
test ebx, ebx
mov dword [esp + 0x20], ebx
jl 0x402596
cmp ebx, dword [0x4aaa60]
jge 0x402596
mov ecx, dword [0x4aaa5c]
lea eax, [ebx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + ecx]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x402739
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x402723
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x402723
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4026cc
cmp eax, dword [esi]
jne 0x4026cc
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402703
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4026e5
jmp fcn.00401170
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045cd8f
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40271a
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x402735
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp dword [edi - 0xc], 0
jle 0x40278a
push str.winhjtools.dll
lea eax, [esp + 0x24]
push 0x4aa948
push eax
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push 0x4819d0
push 0x4819cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40278a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [0x4aaa88]
jge 0x402596
mov ecx, dword [0x4aaa84]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x40284b
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x402839
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x402839
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4027e2
cmp eax, dword [esi]
jne 0x4027e2
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x402819
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4027fb
jmp fcn.00401170
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045cd8f
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x402830
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40284b
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jle 0x40289c
push str.winhjtools.dll
lea eax, [esp + 0x20]
push 0x4aa948
push eax
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push str.BFER
push 0x4819cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40289c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x18], 0
je 0x402af9
mov esi, dword [esp + 0x28]
cmp esi, 1
jl 0x402af9
call fcn.0045d28d
cdq
idiv esi
mov ebx, edx
test ebx, ebx
mov dword [esp + 0x20], ebx
jl 0x402596
cmp ebx, dword [0x4aaa74]
jge 0x402596
mov ecx, dword [0x4aaa70]
lea eax, [ebx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + ecx]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x402996
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x402980
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x402980
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x402929
cmp eax, dword [esi]
jne 0x402929
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x402960
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x402942
jmp fcn.00401170
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045cd8f
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x402977
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x402992
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
cmp dword [edi - 0xc], 0
jle 0x4029e7
push str.winhjtools.dll
lea eax, [esp + 0x1c]
push 0x4aa948
push eax
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push 0x4819c8
push 0x4819cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, dword [0x4aaa9c]
jge 0x402596
mov ecx, dword [0x4aaa98]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x402aa8
cmp dword [ebp + 0xc], 0
lea ebx, [ebp + 0xc]
jl 0x402a96
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x402a96
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x402a3f
cmp eax, dword [esi]
jne 0x402a3f
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x402a76
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x402a58
jmp fcn.00401170
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0045cd8f
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x402a8d
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x402aa8
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401910
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jle 0x402af9
push str.winhjtools.dll
lea eax, [esp + 0x1c]
push 0x4aa948
push eax
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push edi
push str.GFER
push 0x4819cc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402af9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 0
jne 0x402b53
push str.winhjtools.dll
lea ecx, [esp + 0x1c]
push 0x4aa948
push ecx
call fcn.00401d00
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push eax
push 0x481930
push 0x4819d0
push 0x4819cc
call ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402b59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x402b59
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esp + 0x28], 0
jne 0x402bab
push str.winhjtools.dll
lea ecx, [esp + 0x1c]
push 0x4aa948
push ecx
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x481930
push 0x4819c8
push 0x4819cc
call ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402bab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.winhjtools.dll
lea ecx, [esp + 0x1c]
push 0x4aa948
push ecx
call fcn.00401d00
mov eax, dword [eax]
mov esi, dword [esp + 0x40]
mov ecx, dword [esi + 0x40]
add esp, 0xc
push eax
push ecx
push str.BFF_IE
push 0x4819cc
call ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402bf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.winhjtools.dll
lea ecx, [esp + 0x1c]
push 0x4aa948
push ecx
call fcn.00401d00
mov eax, dword [eax]
mov ecx, dword [esi + 0x44]
add esp, 0xc
push eax
push ecx
push str.BFER_IE
push 0x4819cc
call ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x144], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x144], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0045d22c
add esp, 0x134
ret