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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451e96
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 [0x46b870]
fild dword [0x46b874]
cdq
sub eax, edx
mov dword [ebx], 0x464270
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 [0x46b874]
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 [0x4648f0]
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 [0x46b870]
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.004187b0
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.004180d0
mov ecx, ebx
call fcn.00414a00
mov ebx, 0x461e08
mov dword [ebp - 0x30], 0x86
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 0x41377f
cmp dword [eax + 0x10], ecx
jae 0x41376c
mov eax, dword [eax + 8]
jmp 0x413770
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413762
cmp esi, edx
je 0x41377f
cmp ecx, dword [esi + 0x10]
jae 0x4137a6
lea eax, [ebp - 0x38]
push ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push ecx
mov ecx, edi
call fcn.00418830
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00418860
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 0x413750
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.00419980
mov edx, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x3c]
cmp eax, 1
jne 0x4138a1
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 0x4138a1
lea ecx, [ecx]
mov ebx, dword [eax]
mov ecx, edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
call fcn.004185e0
test eax, eax
je 0x41388c
mov ecx, dword [edi]
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41385e
cmp dword [eax + 0x10], ebx
jae 0x41384b
mov eax, dword [eax + 8]
jmp 0x41384f
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413841
cmp esi, ecx
je 0x41385e
cmp ebx, dword [esi + 0x10]
jae 0x413885
lea eax, [ebp - 0x30]
push ecx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push ecx
mov ecx, edi
call fcn.00418830
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.00418860
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 0x413820
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4139bd
mov edx, dword [edi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4138dd
lea esp, [esp]
cmp dword [eax + 0x10], ecx
jae 0x4138ca
mov eax, dword [eax + 8]
jmp 0x4138ce
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4138c0
cmp esi, edx
je 0x4138dd
cmp ecx, dword [esi + 0x10]
jae 0x413904
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push ecx
mov ecx, edi
call fcn.00418830
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
call fcn.00418860
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 0x413949
mov ebx, eax
push dword [esi + 8]
mov ecx, edi
call fcn.00418770
mov esi, dword [esi]
push 0x18
push ebx
call fcn.0041b657
add esp, 8
mov ebx, esi
cmp byte [esi + 0xd], 0
je 0x413922
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 0x41398d
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 0x10], ecx
jae 0x41397a
mov eax, dword [eax + 8]
jmp 0x41397e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413970
cmp esi, edx
je 0x41398d
cmp ecx, dword [esi + 0x10]
jae 0x4139b4
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, edi
call fcn.00418830
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x54]
push eax
call fcn.00418860
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 0x413a70
xor eax, eax
mov ecx, 0x461e08
lea esp, [esp]
cmp dword [ecx], edx
je 0x413a06
inc eax
add ecx, 0x10
cmp eax, 0x86
jb 0x4139f0
mov eax, 4
jmp 0x413a0e
shl eax, 4
add eax, 0x461e0c
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x413aed
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 0x413aed
mov esi, dword [edi]
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x413aed
jmp 0x413a80
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
shr eax, 2
test al, 1
je 0x413ade
xor eax, eax
mov ecx, 0x461e08
cmp dword [ecx], edi
je 0x413aaa
inc eax
add ecx, 0x10
cmp eax, 0x86
jb 0x413a94
mov eax, 4
jmp 0x413ab2
shl eax, 4
add eax, 0x461e0c
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x413ade
push edi
push eax
push 0x151
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x34]
call fcn.00418580
mov eax, dword [ebp - 0x34]
cmp eax, esi
jne 0x413a80
mov ecx, ebx
call fcn.00417940
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x413b27
mov ecx, dword [ebp - 0x60]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x413b1d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b7d
push ecx
push edx
call fcn.0041b657
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x413b5d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413b53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413b82
push edx
push ecx
call fcn.0041b657
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.0041b616
mov esp, ebp
pop ebp
ret 0x14
call fcn.00436a89
call fcn.00436a89
int3