Function at 0x413570
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ea6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], ebx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0
mov eax, dword [0x46b874]
fild dword [0x46b870]
cdq
sub eax, edx
mov dword [ebx], 0x4646c8
mov edi, eax
mov dword [ebx + 0xc], 0x30
sar edi, 1
mov dword [ebx + 0x10], 0x26
mov dword [ebx + 0x14], 0x26
mov dword [ebx + 0x18], 0x114
lea eax, [edi - 0x8a]
mov dword [ebx + 0x1c], 0x5b
mov dword [ebx + 0x20], eax
lea eax, [edi - 0x70]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x24], 0x40
mov dword [ebx + 0x28], 0xe0
mov dword [ebx + 0x2c], 0x30
mov dword [ebx + 0x30], 0x168
mov dword [ebx + 0x34], 0x20
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x5c]
fld qword [str.333333]
mov esi, dword [0x46b870]
fnstcw word [ebp - 0x2e]
movzx eax, word [ebp - 0x2e]
or eax, 0xc00
mov dword [ebx + 0x4c], 0x26
mov dword [ebp - 0x34], eax
mov eax, esi
cdq
sub eax, edx
mov dword [ebx + 0x54], 0x140
sar eax, 1
mov dword [ebx + 0x58], 0x14
mov dword [ebx + 0x64], 0x140
mov dword [ebx + 0x68], 0x14
fmul st(1)
fldcw word [ebp - 0x34]
fistp qword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
fldcw word [ebp - 0x2e]
lea edx, [ecx - 0x10]
add edx, eax
lea eax, [edi - 0xb4]
mov dword [ebx + 0x40], eax
mov ecx, edx
mov dword [ebx + 0x3c], edx
fmul qword [0x464d48]
fnstcw word [ebp - 0x2e]
movzx eax, word [ebp - 0x2e]
or eax, 0xc00
mov dword [ebp - 0x34], eax
fldcw word [ebp - 0x34]
fistp qword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
sub ecx, eax
lea eax, [edx + 0x48]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
lea edx, [esi - 0x30]
mov eax, dword [0x46b874]
lea ecx, [edx - 0x18]
fldcw word [ebp - 0x2e]
add eax, 0xfffffe9a
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x6c], eax
lea eax, [edx - 0x30]
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x80], edi
lea edi, [ebx + 0xe4]
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x84], edx
mov dword [ebx + 0x90], eax
mov dword [ebp - 0x50], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004187d0
mov dword [edi], eax
fld dword [ebp + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
fstp dword [ebx + 0x8c]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov byte [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
call fcn.004180f0
mov ecx, ebx
call fcn.00414a30
mov ebx, 0x461fe0
mov dword [ebp - 0x30], 0xae
lea ebx, [ebx]
mov edx, dword [edi]
mov esi, edx
mov ecx, dword [ebx]
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4137af
cmp dword [eax + 0x10], ecx
jae 0x41379c
mov eax, dword [eax + 8]
jmp 0x4137a0
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413792
cmp esi, edx
je 0x4137af
cmp ecx, dword [esi + 0x10]
jae 0x4137d6
lea eax, [ebp - 0x38]
push ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push ecx
mov ecx, edi
call fcn.00418850
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00418880
mov esi, dword [ebp - 0x40]
mov eax, dword [ebx + 0xc]
add ebx, 0x10
and eax, 1
shl eax, 2
sub dword [ebp - 0x30], 1
mov dword [esi + 0x14], eax
jne 0x413780
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004199a0
mov edx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x3c]
cmp eax, 1
jne 0x4138d1
mov ecx, dword [ebp - 0x64]
xor esi, esi
sub ecx, edx
mov dword [ebp - 0x34], esi
add ecx, 3
shr ecx, 2
cmp dword [ebp - 0x64], edx
sbb eax, eax
not eax
and eax, ecx
mov dword [ebp - 0x40], eax
mov eax, edx
mov dword [ebp - 0x38], eax
je 0x4138d1
lea ecx, [ecx]
mov ebx, dword [eax]
mov ecx, edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
call fcn.00418600
test eax, eax
je 0x4138bc
mov ecx, dword [edi]
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41388e
cmp dword [eax + 0x10], ebx
jae 0x41387b
mov eax, dword [eax + 8]
jmp 0x41387f
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413871
cmp esi, ecx
je 0x41388e
cmp ebx, dword [esi + 0x10]
jae 0x4138b5
lea eax, [ebp - 0x30]
push ecx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push ecx
mov ecx, edi
call fcn.00418850
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.00418880
mov esi, dword [ebp - 0x44]
or dword [esi + 0x14], 1
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
inc esi
add eax, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
cmp esi, dword [ebp - 0x40]
jne 0x413850
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4139ed
mov edx, dword [edi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41390d
lea esp, [esp]
cmp dword [eax + 0x10], ecx
jae 0x4138fa
mov eax, dword [eax + 8]
jmp 0x4138fe
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4138f0
cmp esi, edx
je 0x41390d
cmp ecx, dword [esi + 0x10]
jae 0x413934
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, edi
call fcn.00418850
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00418880
mov esi, dword [ebp - 0x4c]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
mov ecx, dword [edi]
mov edx, ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ecx + 4]
mov esi, eax
cmp byte [eax + 0xd], 0
jne 0x413979
mov ebx, eax
push dword [esi + 8]
mov ecx, edi
call fcn.00418790
mov esi, dword [esi]
push 0x18
push ebx
call fcn.0041b677
add esp, 8
mov ebx, esi
cmp byte [esi + 0xd], 0
je 0x413952
mov edx, dword [edi]
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
mov dword [edx + 4], ecx
mov eax, dword [edi]
mov dword [eax], ecx
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov dword [eax + 8], ecx
mov dword [edi + 4], 0
mov edx, dword [edi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4139bd
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 0x10], ecx
jae 0x4139aa
mov eax, dword [eax + 8]
jmp 0x4139ae
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4139a0
cmp esi, edx
je 0x4139bd
cmp ecx, dword [esi + 0x10]
jae 0x4139e4
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, edi
call fcn.00418850
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x54]
push eax
call fcn.00418880
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
or eax, 4
mov dword [esi + 0x14], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push dword [ebx + 0xc0]
call esi
mov edx, dword [ebx + 0x88]
test edx, edx
je 0x413aa0
xor eax, eax
mov ecx, 0x461fe0
lea esp, [esp]
cmp dword [ecx], edx
je 0x413a36
inc eax
add ecx, 0x10
cmp eax, 0xae
jb 0x413a20
mov eax, 4
jmp 0x413a3e
shl eax, 4
add eax, 0x461fe4
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x413b1d
push dword [ebx + 0x88]
push eax
push 0x151
push dword [ebx + 0xc0]
call esi
push 0
push 0
push 0x14e
push dword [ebx + 0xc0]
call esi
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebx + 0xc0]
call dword [eax + 0x18]
push 0
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x413b1d
mov esi, dword [edi]
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x413b1d
jmp 0x413ab0
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
shr eax, 2
test al, 1
je 0x413b0e
xor eax, eax
mov ecx, 0x461fe0
cmp dword [ecx], edi
je 0x413ada
inc eax
add ecx, 0x10
cmp eax, 0xae
jb 0x413ac4
mov eax, 4
jmp 0x413ae2
shl eax, 4
add eax, 0x461fe4
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x413b0e
push edi
push eax
push 0x151
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x34]
call fcn.004185a0
mov eax, dword [ebp - 0x34]
cmp eax, esi
jne 0x413ab0
mov ecx, ebx
call fcn.00417970
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x413b57
mov ecx, dword [ebp - 0x60]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x413b4d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bad
push ecx
push edx
call fcn.0041b677
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x413b8d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413b83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bb2
push edx
push ecx
call fcn.0041b677
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b636
mov esp, ebp
pop ebp
ret 0x14
call fcn.00436a99
call fcn.00436a99
int3