Function at 0x40f980
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4408b2
mov eax, dword fs:[0]
push eax
sub esp, 0x9c8
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x9c0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c040]
xor eax, esp
push eax
lea eax, [esp + 0x9d8]
mov dword fs:[0], eax
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov esi, ecx
xor ebx, ebx
mov ecx, 0x44e98c
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x9e0], ebx
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x9e0], 1
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x9e0], 2
mov eax, dword [0x44e98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44e98c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
add esi, 0x34
push esi
lea esi, [esp + 0x30]
call fcn.00402fe0
lea eax, [esp + 0x20]
mov edi, esi
call fcn.00402f30
mov byte [esp + 0x9e0], 5
mov eax, dword [eax]
cmp eax, ebx
je 0x40fa6c
lea edx, [eax + 8]
cmp edx, ebx
jne 0x40fa71
xor eax, eax
jmp 0x40fa85
mov edx, 0x44f7bc
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fa76
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x14]
call fcn.00403540
mov byte [esp + 0x9e0], 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40fabd
dec dword [eax]
cmp dword [eax], 0
jne 0x40fabd
mov eax, dword [esp + 0x20]
push eax
call fcn.004284c0
add esp, 4
mov dword [esp + 0x20], 0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
call fcn.00408640
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x40fb5e
push 0x30
push 0x4430f0
push 0x443fa8
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edx, [esp + 0x2c]
push edx
mov dword [esi + 0x454], ebx
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x9e0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x9e0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9e0], bl
jmp 0x40fd93
cmp eax, 0xc
jle 0x40fb74
push 0x30
push 0x4430f0
push str._rTW_
jmp 0x40fae7
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x30]
mov esi, dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
push str.button_2
push str.class
push ecx
call esi
mov edx, dword [ebx + 0x28]
push str.width:30___
push str.style
push edx
call esi
cmp dword [ebx + 0x45c], 0
jne 0x40fc03
jmp 0x40fbb0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x45c], 1
je 0x40fe02
push 0x3c
push str.width:_d_____
lea edi, [esp + 0x20]
call fcn.004026d0
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x28]
add esp, 8
push eax
push str.style
push ecx
call esi
cmp dword [esp + 0x24], 2
mov edi, dword [esp + 0x14]
je 0x40fc03
inc dword [esp + 0x24]
cmp dword [ebx + 0x45c], 0
je 0x40fbb0
mov ecx, dword [ebx + 0x28]
push str.width:90___
push str.style
push ecx
call esi
mov eax, dword [esp + 0x10]
mov esi, 1
cmp dword [eax - 4], esi
jle 0x40fc33
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00403440
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 0x24c]
push ecx
push eax
push str.user
push str.temp
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x988
lea edx, [esp + 0x44]
push 0
push edx
mov dword [esp + 0x48], 0
call fcn.0042aa60
add esp, 0xc
cmp dword [edi - 4], esi
jle 0x40fc7e
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040b550
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x40]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, esi
test cl, cl
jne 0x40fc86
mov edx, dword [ebx + 0x38]
push 0
sub esp, 0x98c
mov edi, esp
mov ecx, 0x263
lea esi, [esp + 0x9cc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0041a2a0
mov esi, dword [ebx + 0x38]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0x413410
push 0x1388
push 0x65
push eax
mov dword [esi + 0xa4], 0
call edi
cmp dword [esi + 0xa0], 0
je 0x40fcf2
mov ecx, dword [esi + 0x10]
push 0x413410
push 0x2710
push 0x67
push ecx
call edi
push 0x444ba8
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40fd10
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esi + 0x10]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x30]
push str.button_1
push str.class
push eax
call dword [sym.imp.HTMLayout.dll_HTMLayoutSetAttributeByName]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x9e0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9e0], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9e0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x9e0], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x9d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9c0]
xor ecx, esp
call fcn.0042825b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x28]
push str.width:0___
push str.style
push edx
call esi
mov eax, dword [ebx + 0x30]
push str.button_1
push str.class
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
mov dword [ebx + 0x454], 0
call dword [sym.imp.HTMLayout.dll_ValueClear]
mov byte [esp + 0x9e0], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x9e0], 1
lea eax, [edi - 0x10]
jmp 0x40fd72