Function at 0x40c320
Capabilities:
Capture screenshot
Extract http body
Hide graphical window
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x45fb31
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x394]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3a4]
mov dword [esp + 0x24], eax
xor eax, eax
mov esi, ecx
cmp esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x23], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
jne 0x40c3ae
xor al, al
jmp 0x40ccfe
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMActiveX::GetHostWindow_void_const]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c3a7
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
mov ecx, dword [eax + 0xc]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov edi, dword [eax + 8]
lea edx, [esp + 0x44]
push edx
mov edx, dword [0x46a270]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x46a26c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x46a274]
mov dword [eax + 4], edx
mov edx, dword [0x46a278]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], edi
mov dword [eax + 0xc], edx
call dword [sym.imp.K8UIRender.dll_public:_long_int___thiscall_GameMgr::GMActiveX::GetControl_struct__GUID__void___]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x46a23c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push 0x46a27c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cc6a
cmp dword [esp + 0x30], 0
je 0x40cc6a
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push 0x46a24c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x140]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 0x144]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
push 0x46a22c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40cc6a
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
jl 0x40cc6a
cmp dword [esp + 0x54], 0
je 0x40cc6a
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 0x46a24c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40cc7a
mov ecx, dword [eax]
lea edx, [esp + 0x5c]
push edx
push eax
mov eax, dword [ecx + 0x140]
call eax
test eax, eax
jl 0x40cc6a
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
cmp eax, edx
jle 0x40c5b7
mov edx, eax
mov dword [esp + 0x3c], edx
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x64]
mov eax, ecx
sub eax, ebx
test edx, edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x90], 0
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], esi
je 0x40c607
mov eax, edx
mov dword [esp + 0x9c], eax
jmp 0x40c60b
mov dword [esp + 0x3c], eax
sub esp, 0x10
mov dword [esp + 0xfc], edi
lea edi, [ebx + eax]
mov eax, esp
mov dword [eax], ebp
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [eax + 4], ebx
add esi, ebp
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0xc4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
xor eax, eax
push edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
sub edi, ebx
push edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
sub esi, ebp
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [esp + 0x50]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
push edi
push edi
push edi
lea edx, [esp + 0x9c]
push edx
push esi
push edi
push edi
push edi
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xb8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0xa0]
push ecx
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
xor eax, eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov word [esp + 0x68], di
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x6a], eax
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xe8], eax
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov ebp, eax
sar ebp, 5
imul ebp, ecx
add ebp, ebp
add ebp, ebp
lea edx, [ebp + 0x28]
push edx
push 0x42
mov dword [esp + 0xec], 0x28
mov word [esp + 0xf8], 1
mov dword [esp + 0xfc], edi
mov word [esp + 0xfa], 0x18
mov dword [esp + 0xf4], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push eax
mov edi, eax
mov dword [esp + 0x30], eax
add eax, 0x28
push eax
mov ecx, 0xa
lea esi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x5c]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edi, dword [esp + 0x24]
add edi, 0x24
push 0x65
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMPaintManager::FindControl_unsigned_int_const]
mov esi, eax
test esi, esi
je 0x40c86d
mov ecx, dword [esp + 0x1c]
push 0
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMActiveX::GetHostWindow_void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xd0]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMControl::SetMemoryBkArea_struct_tagRECT_]
push ebx
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMControl::SetMemoryBkHandle_struct_HBITMAP____]
push 0
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMControl::SetIsMemoryBitmapAlpha_bool_]
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
push 1
mov ecx, esi
call eax
push 0x66
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMPaintManager::FindControl_unsigned_int_const]
mov edi, eax
test edi, edi
mov dword [esp + 0x58], edi
je 0x40c8fe
lea ecx, [esp + 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x39c], 0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push eax
push 0xd6
lea ecx, [esp + 0xf0]
push str.res_d_restypePNG_source0_0_20_24_dest0_0__d__d
push ecx
call dword [sym.imp.K8Common.dll_public:_static_void___cdecl_GameMgr::GMStringUtils::Format_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__]
add esp, 0x14
lea edx, [esp + 0xe4]
push edx
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMControl::SetNormalBkImage_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [edi]
mov edx, dword [eax + 0xd4]
push 1
mov ecx, edi
call edx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x39c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x14c]
push ecx
call fcn.0043d3a0
mov ecx, edi
mov dword [esp + 0x39c], 1
mov edx, dword [ecx + 0x218]
mov edx, dword [edx]
add ecx, 0x218
push 0
lea eax, [esp + 0x148]
push eax
call edx
test esi, esi
je 0x40c94e
mov eax, dword [esi]
mov edx, dword [eax + 0xd4]
push 0
mov ecx, esi
call edx
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x40c962
mov eax, dword [ecx]
mov edx, dword [eax + 0xd4]
push 0
call edx
mov edi, dword [esp + 0x1c]
push 5
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMActiveX::GetHostWindow_void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x128]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x39c], 2
mov eax, dword [esp + 0x378]
sub eax, 0x68
je 0x40c9bf
sub eax, 2
jne 0x40c9fc
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c9fc
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x40c9fc
lea esi, [esp + 0xc8]
lea eax, [esp + 0x144]
call fcn.0043e010
push eax
lea ecx, [esp + 0x12c]
mov byte [esp + 0x3a0], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x39c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x13c], 0
je 0x40cbbf
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.K8Common.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_GameMgr::GMFilePathUtils::Extension_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
push str..jpg
lea ecx, [esp + 0xe8]
mov byte [esp + 0x3a0], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x110]
mov byte [esp + 0x3a0], 5
mov esi, dword [sym.imp.K8Common.dll_public:_static_int___cdecl_GameMgr::GMStringUtils::CompareNoCase_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push eax
call esi
add esp, 8
test eax, eax
lea ecx, [esp + 0xe4]
sete byte [esp + 0x1b]
mov byte [esp + 0x39c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esp + 0x1b], 0
je 0x40caa2
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x128]
push ecx
add ebp, 0xe
push ebp
push edx
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMImageConvert::ConvertBmpToJpeg_char_const___unsigned_long_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
jmp 0x40cbaa
push str..png
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x110]
push ecx
mov byte [esp + 0x3a4], 6
call esi
add esp, 8
test eax, eax
lea ecx, [esp + 0xc8]
sete byte [esp + 0x1b]
mov byte [esp + 0x39c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [esp + 0x1b], 0
je 0x40cb13
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x128]
push edx
add ebp, 0xe
push ebp
push eax
call dword [sym.imp.K8Common.dll_public:_static_bool___cdecl_GameMgr::GMImageConvert::ConvertBmpToPng_char_const___unsigned_long_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
jmp 0x40cbaa
lea ecx, [esp + 0x1c]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMFile::constructor_void_]
push 0x80
push 2
push 3
push 0x40000000
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x3b0], 7
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_]
test al, al
lea ecx, [esp + 0x1c]
je 0x40cb9c
mov esi, dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMFile::Write_void_const___unsigned_int__unsigned_int__]
lea edx, [esp + 0x58]
push edx
push 0xe
lea eax, [esp + 0x70]
add ebp, 0x36
push eax
mov word [esp + 0x74], 0x4d42
mov dword [esp + 0x76], ebp
mov dword [esp + 0x7e], 0x36
call esi
test al, al
je 0x40cb98
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push ecx
add ebp, 0xfffffff2
push ebp
push edx
lea ecx, [esp + 0x28]
call esi
test al, al
je 0x40cb98
mov byte [esp + 0x23], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x39c], 4
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMFile::destructor_void_]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x39c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [esp + 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x50]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x78]
mov edx, dword [edi]
mov edx, dword [edx + 0xc4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
lea ecx, [esp + 0x128]
mov byte [esp + 0x39c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x3a0], 0xffffffff
call fcn.0043d4a0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40cc7a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40cc8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40cc9a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40ccaa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40ccba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40ccca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40ccda
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40ccea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40ccfa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [esp + 0x23]
mov ecx, dword [esp + 0x394]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.0045d098
add esp, 0x38c
ret 4