Function at 0x540690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x655866
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x124], edi
mov dword [edi], vtable.Sexy::SexyAppBase.1.0
mov dword [edi + 4], vtable.Sexy::SexyAppBase.0
mov dword [esp + 0x140], 0x19
call fcn.00547460
xor ebx, ebx
cmp byte [edi + 0x5ca], bl
mov byte [esp + 0x17], bl
je 0x540962
push 4
push str.Is3D
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.00402300
lea eax, [esp + 0x16]
push eax
lea edx, [esp + 0x2c]
mov ecx, edi
mov byte [esp + 0x144], 0x1a
call fcn.005460a0
mov byte [esp + 0x140], 0x19
cmp dword [esp + 0x40], 0x10
mov byte [esp + 0x16], al
jb 0x54074d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0062493b
add esp, 4
cmp byte [esp + 0x16], bl
jne 0x540911
mov eax, edi
call fcn.00550f20
test al, al
jne 0x540911
mov eax, edi
call fcn.00550ef0
test al, al
je 0x540962
push str.Hardware_Acceleration_Confirmation
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1b], 1
call fcn.00402130
push str.HARDWARE_ACCEL_CONFIRMATION
lea ecx, [esp + 0x9c]
mov byte [esp + 0x144], 0x1b
call fcn.00402130
push str.Hardware_Acceleration_was_switched_on_during_this_session._r_nIf_this_resulted_in_slower_performance__it_should_be_switched_off._r_nWould_you_like_to_keep_Hardware_Acceleration_switched_on_
lea ecx, [esp + 0x48]
mov byte [esp + 0x144], 0x1c
call fcn.00402130
push str.HARDWARE_ACCEL_SWITCHED_ON
lea ecx, [esp + 0x64]
mov byte [esp + 0x144], 0x1d
call fcn.00402130
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x9c]
lea esi, [esp + 0x2c]
mov eax, edi
mov byte [esp + 0x144], 0x1e
call fcn.0054e760
mov ebp, eax
lea eax, [edi + 0xc]
push eax
lea esi, [esp + 0xd4]
mov byte [esp + 0x144], 0x1f
call fcn.004e6880
add esp, 4
push 0x67cd44
push eax
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x14c], 0x20
call fcn.0044cf70
add esp, 0xc
push ebp
push eax
lea edx, [esp + 0xf4]
push edx
mov byte [esp + 0x14c], 0x21
call fcn.0044d040
add esp, 0xc
mov ebp, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
lea esi, [esp + 0x10c]
mov eax, edi
mov byte [esp + 0x144], 0x22
call fcn.0054e760
cmp dword [ebp + 0x18], 0x10
jb 0x540873
mov ebp, dword [ebp + 4]
jmp 0x540876
add ebp, 4
cmp dword [eax + 0x18], 0x10
jb 0x540881
mov eax, dword [eax + 4]
jmp 0x540884
add eax, 4
push 0x24
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x108]
mov esi, eax
call fcn.00401c70
lea ecx, [esp + 0xec]
call fcn.00401c70
lea ecx, [esp + 0x7c]
call fcn.00401c70
lea ecx, [esp + 0xd0]
call fcn.00401c70
lea ecx, [esp + 0x28]
call fcn.00401c70
lea ecx, [esp + 0x60]
call fcn.00401c70
lea ecx, [esp + 0x44]
call fcn.00401c70
lea ecx, [esp + 0x98]
call fcn.00401c70
lea ecx, [esp + 0xb4]
mov byte [esp + 0x140], 0x19
call fcn.00401c70
mov edx, dword [edi + 0x36c]
cmp esi, 6
sete cl
cmp esi, 6
mov byte [edx + 0x38], cl
jne 0x540c44
push str.Is3D
lea ecx, [esp + 0x48]
call fcn.00402130
mov byte [esp + 0x140], 0x23
mov eax, dword [edi + 0x36c]
movzx ecx, byte [eax + 0x38]
push ecx
push edi
lea edx, [esp + 0x4c]
call fcn.00545590
mov byte [esp + 0x140], 0x19
cmp dword [esp + 0x5c], 0x10
jb 0x540958
mov edx, dword [esp + 0x48]
push edx
call fcn.0062493b
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x540c44
cmp byte [0x6b9d7d], bl
je 0x540c44
mov eax, edi
call fcn.00541360
test al, al
jne 0x540c44
push str.Hardware_Acceleration_Confirmation
lea ecx, [esp + 0x64]
call fcn.00402130
push str.HARDWARE_ACCEL_CONFIRMATION
lea ecx, [esp + 0x80]
mov byte [esp + 0x144], 0x24
call fcn.00402130
push str.Hardware_Acceleration_may_not_have_been_working_correctly_during_this_session._r_nIf_you_noticed_graphics_problems__you_may_want_to_turn_off_Hardware_Acceleration._r_nWould_you_like_to_keep_Hardware_Acceleration_switched_on_
lea ecx, [esp + 0xd4]
mov byte [esp + 0x144], 0x25
call fcn.00402130
push str.HARDWARE_ACCEL_NOT_WORKING
lea ecx, [esp + 0x2c]
mov byte [esp + 0x144], 0x26
call fcn.00402130
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
lea esi, [esp + 0x48]
mov eax, edi
mov byte [esp + 0x144], 0x27
call fcn.0054e760
mov ebp, eax
lea ecx, [edi + 0xc]
push ecx
lea esi, [esp + 0x9c]
mov byte [esp + 0x144], 0x28
call fcn.004e6880
add esp, 4
push 0x67cd44
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x14c], 0x29
call fcn.0044cf70
add esp, 0xc
push ebp
push eax
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x14c], 0x2a
call fcn.0044d040
add esp, 0xc
mov ebp, eax
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x2c]
lea esi, [esp + 0xf0]
mov eax, edi
mov byte [esp + 0x144], 0x2b
call fcn.0054e760
mov esi, 0x10
cmp dword [ebp + 0x18], esi
jb 0x540a7a
mov ebp, dword [ebp + 4]
jmp 0x540a7d
add ebp, 4
cmp dword [eax + 0x18], esi
jb 0x540a87
mov eax, dword [eax + 4]
jmp 0x540a8a
add eax, 4
push 0x24
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x104], esi
mov dword [esp + 0x18], eax
jb 0x540ab2
mov edx, dword [esp + 0xf0]
push edx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x120], esi
mov ebp, 0xf
mov dword [esp + 0x104], ebp
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
jb 0x540ae5
mov eax, dword [esp + 0x10c]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xcc], esi
mov dword [esp + 0x120], ebp
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
jb 0x540b13
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xb0], esi
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
jb 0x540b41
mov edx, dword [esp + 0x9c]
push edx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x540b69
mov eax, dword [esp + 0x48]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x540b88
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xe8], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x540bad
mov edx, dword [esp + 0xd4]
push edx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x94], esi
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
jb 0x540bdb
mov eax, dword [esp + 0x80]
push eax
call fcn.0062493b
add esp, 4
mov byte [esp + 0x140], 0x19
cmp dword [esp + 0x78], esi
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x540c0b
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x18], 7
jne 0x540c44
push str.Is3D
lea ecx, [esp + 0x64]
call fcn.00402130
push ebx
push edi
lea edx, [esp + 0x68]
mov byte [esp + 0x148], 0x2c
call fcn.00545590
lea ecx, [esp + 0x60]
mov byte [esp + 0x140], 0x19
call fcn.00401c70
mov eax, dword [edi + 0x328]
mov ebp, dword [eax]
lea esi, [edi + 0x324]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
lea ebx, [ebx]
cmp esi, ebx
mov edx, dword [edi + 0x328]
lea eax, [edi + 0x324]
mov dword [esp + 0x24], edx
je 0x540c78
cmp esi, eax
je 0x540c7d
call fcn.0062492b
cmp ebp, dword [esp + 0x24]
je 0x540cd3
cmp esi, ebx
jne 0x540c8c
call fcn.0062492b
cmp ebp, dword [esi + 4]
jne 0x540c96
call fcn.0062492b
mov ecx, dword [edi + 0x320]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
push edx
call eax
cmp ebp, dword [esi + 4]
jne 0x540cb1
call fcn.0062492b
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x540cc0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea esi, [esp + 0x18]
call fcn.00557a20
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x540c60
mov ecx, dword [edi + 0x328]
mov edx, dword [ecx + 4]
lea esi, [edi + 0x324]
push edx
mov ecx, esi
call fcn.0053e710
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov eax, dword [esi + 4]
lea esi, [edi + 0x330]
mov dword [eax + 8], eax
call fcn.00554b70
mov esi, dword [edi + 0x354]
cmp esi, ebx
je 0x540d2a
push ebx
push 0xffffffffffffffeb
push esi
mov dword [edi + 0x354], ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [edi + 0x320]
cmp ecx, ebx
je 0x540d3c
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [edi + 0x634]
cmp ecx, ebx
je 0x540d4f
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push 1
call edx
mov ecx, dword [0x6b9da8]
cmp ecx, ebx
je 0x540d61
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [edi + 0x444]
mov eax, dword [eax]
lea ebp, [edi + 0x440]
mov esi, ebp
mov dword [0x6b9da8], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
nop
cmp esi, ebx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x12c], ecx
je 0x540d92
cmp esi, ebp
je 0x540d97
call fcn.0062492b
mov edx, dword [esp + 0x12c]
cmp dword [esp + 0x1c], edx
je 0x540e04
cmp esi, ebx
jne 0x540dad
call fcn.0062492b
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
jne 0x540dbb
call fcn.0062492b
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x44]
cmp ecx, ebx
je 0x540dce
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x24], ecx
call fcn.00555390
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x138]
push ecx
push ebp
call fcn.00551d90
mov esi, dword [esp + 0x18]
jmp 0x540d80
mov ecx, dword [edi + 0x36c]
cmp ecx, ebx
je 0x540e16
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [edi + 0x374]
cmp ecx, ebx
je 0x540e28
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [edi + 0x4b4]
cmp ecx, ebx
je 0x540e3a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov esi, dword [edi + 0x350]
cmp esi, ebx
je 0x540e5b
push ebx
push 0xffffffffffffffeb
push esi
mov dword [edi + 0x350], ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, edi
call fcn.00542460
mov ecx, dword [edi + 0x4b8]
mov esi, dword [sym.imp.USER32.dll_DestroyCursor]
push ecx
call esi
mov edx, dword [edi + 0x4bc]
push edx
call esi
push edi
mov dword [0x6b9d90], ebx
call fcn.005418c0
mov eax, dword [edi + 0xf8]
cmp eax, ebx
je 0x540e97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6b9d94]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
mov ecx, dword [0x6b9d98]
push ecx
call esi
mov edx, dword [0x6b9d9c]
push edx
call esi
lea eax, [edi + 0x628]
mov byte [esp + 0x140], 0x18
call fcn.00553b50
lea eax, [edi + 0x61c]
mov byte [esp + 0x140], 0x17
call fcn.00553b10
lea eax, [edi + 0x610]
mov byte [esp + 0x140], 0x16
call fcn.00443e10
lea eax, [edi + 0x604]
mov byte [esp + 0x140], 0x15
call fcn.004f7d00
lea eax, [edi + 0x5f8]
mov byte [esp + 0x140], 0x14
call fcn.005536f0
lea esi, [edi + 0x5a0]
push esi
call fcn.00554cd0
mov eax, dword [esi + 4]
push eax
call fcn.0062493b
add esp, 4
lea ecx, [edi + 0x590]
mov dword [esi + 4], ebx
mov byte [esp + 0x140], 0x12
call fcn.005534a0
lea ecx, [edi + 0x54c]
call fcn.005653e0
mov ebp, 0x10
cmp dword [edi + 0x548], ebp
jb 0x540f6b
mov eax, dword [edi + 0x534]
push eax
call fcn.0062493b
add esp, 4
mov dword [edi + 0x548], 0xf
mov dword [edi + 0x544], ebx
mov byte [edi + 0x534], bl
cmp dword [edi + 0x52c], ebp
jb 0x540f98
mov eax, dword [edi + 0x518]
push eax
call fcn.0062493b
add esp, 4
mov dword [edi + 0x52c], 0xf
mov dword [edi + 0x528], ebx
lea esi, [edi + 0x4c0]
mov byte [edi + 0x518], bl
call fcn.00554b70
mov eax, dword [esi + 4]
push eax
call fcn.0062493b
add esp, 4
lea eax, [edi + 0x440]
mov dword [esi + 4], ebx
mov byte [esp + 0x140], 0xd
call fcn.00553180
lea eax, [edi + 0x434]
mov byte [esp + 0x140], 0xc
call fcn.0053b1d0
cmp dword [edi + 0x408], ebp
jb 0x541005
mov eax, dword [edi + 0x3f4]
push eax
call fcn.0062493b
add esp, 4
mov esi, 0xf
mov dword [edi + 0x408], esi
mov dword [edi + 0x404], ebx
mov byte [edi + 0x3f4], bl
cmp dword [edi + 0x3b0], ebp
jb 0x541033
mov eax, dword [edi + 0x39c]
push eax
call fcn.0062493b
add esp, 4
mov dword [edi + 0x3b0], esi
mov dword [edi + 0x3ac], ebx
mov byte [edi + 0x39c], bl
cmp dword [edi + 0x394], ebp
jb 0x54105c
mov eax, dword [edi + 0x380]
push eax
call fcn.0062493b
add esp, 4
mov dword [edi + 0x394], esi
mov dword [edi + 0x390], ebx
lea esi, [edi + 0x35c]
mov byte [edi + 0x380], bl
call fcn.00554b70
mov eax, dword [esi + 4]
push eax
call fcn.0062493b
mov dword [esi + 4], ebx
add esp, 4
lea esi, [edi + 0x330]
call fcn.00554b70
mov eax, dword [edi + 0x334]
push eax
call fcn.0062493b
add esp, 4
lea eax, [edi + 0x324]
mov dword [edi + 0x334], ebx
mov byte [esp + 0x140], 6
call fcn.00545110
lea eax, [edi + 0x104]
call fcn.004e6010
cmp dword [edi + 0xb0], ebp
jb 0x5410dd
mov eax, dword [edi + 0x9c]
push eax
call fcn.0062493b
add esp, 4
mov esi, 0xf
mov dword [edi + 0xb0], esi
mov dword [edi + 0xac], ebx
mov byte [edi + 0x9c], bl
cmp dword [edi + 0x94], ebp
jb 0x54110b
mov ecx, dword [edi + 0x80]
push ecx
call fcn.0062493b
add esp, 4
mov dword [edi + 0x94], esi
mov dword [edi + 0x90], ebx
mov byte [edi + 0x80], bl
cmp dword [edi + 0x78], ebp
jb 0x54112e
mov edx, dword [edi + 0x64]
push edx
call fcn.0062493b
add esp, 4
mov dword [edi + 0x78], esi
mov dword [edi + 0x74], ebx
mov byte [edi + 0x64], bl
cmp dword [edi + 0x5c], ebp
jb 0x541148
mov eax, dword [edi + 0x48]
push eax
call fcn.0062493b
add esp, 4
mov dword [edi + 0x5c], esi
mov dword [edi + 0x58], ebx
mov byte [edi + 0x48], bl
cmp dword [edi + 0x40], ebp
jb 0x541162
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.0062493b
add esp, 4
mov dword [edi + 0x40], esi
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x2c], bl
cmp dword [edi + 0x24], ebp
jb 0x54117c
mov edx, dword [edi + 0x10]
push edx
call fcn.0062493b
add esp, 4
mov dword [edi + 0x24], esi
mov dword [edi + 0x20], ebx
mov byte [edi + 0x10], bl
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret