Function at 0x42ba30
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5545d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov edi, dword [esp + 0x130]
mov ecx, edi
call fcn.00504b00
xor ebx, ebx
mov dword [esp + 0x128], ebx
mov dword [edi + 0x54], vtable.IMultiLanguageUI.0
lea ebp, [edi + 0x68]
mov ecx, ebp
mov dword [edi], vtable.CDeviceTabCtrl.0
mov dword [edi + 0x54], vtable.CDeviceTabCtrl.1.0
call fcn.0050eda2
lea esi, [edi + 0x78]
push 0xa
mov ecx, esi
mov byte [esp + 0x12c], 1
call fcn.0050ba5c
mov dword [esi], vtable.CTypedPtrList_class_CPtrList__class_CDeviceSettingDlg__.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x98], vtable.CBrush.0
mov byte [esp + 0x128], 3
call fcn.0050f6dd
cmp eax, ebx
je 0x42bada
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
cmp eax, ebx
jne 0x42bade
xor eax, eax
jmp 0x42baf0
mov eax, dword [eax + 0x5c]
cmp eax, ebx
jne 0x42bae9
xor eax, eax
jmp 0x42baf0
add dword [eax + 0x184c], 1
cmp eax, ebx
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
je 0x42bb0c
lea ecx, [eax + 0x17fc]
mov dword [edi + 0x74], ecx
mov edi, dword [esp + 0x130]
add edi, 0xa0
cmp eax, ebx
mov ecx, 0x10
mov esi, 0x5c0e68
rep movsd dword es:[edi], dword [esi]
je 0x42bb48
cmp dword [eax + 0x3bc], ebx
je 0x42bb48
mov eax, dword [eax + 0x3bc]
mov ecx, dword [esp + 0x130]
mov edx, dword [eax]
mov edx, dword [edx + 0x6c]
push ecx
mov ecx, eax
call edx
fld qword [0x5c1028]
push 8
fld qword [0x587758]
push 8
fmul st(1), st(0)
push 0x20
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
push eax
call fcn.00530bd0
push eax
mov ecx, ebp
call fcn.0050f110
mov edi, dword [esp + 0x130]
lea esi, [edi + 0xa4]
mov ebp, 8
lea esp, [esp]
push 0x5c9690
mov dword [esp + 0x18], vtable.ATL::CImage.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x5c96a8], 1
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], vtable.CImageEx.0
mov dword [esp + 0x44], ebx
mov byte [esp + 0x128], 4
call fcn.0050b8e1
mov ecx, dword [esi]
mov eax, dword [eax + 8]
push 1
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00443e90
mov eax, dword [esp + 0x18]
push eax
call fcn.0050c6ad
cmp eax, ebx
jne 0x42bc26
xor eax, eax
jmp 0x42bc29
mov eax, dword [eax + 4]
mov ecx, dword [edi + 0x6c]
push 0xffffff
push eax
push ecx
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], vtable.ATL::CImage.0
je 0x42bc81
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0xffffffff
mov byte [esp + 0x35], bl
mov byte [esp + 0x34], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [0x5c96a8], 1
jne 0x42bcc0
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42bcaf
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x5c9690
mov dword [0x5c968c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esi, 8
sub ebp, 1
jne 0x42bb90
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5c9690
mov dword [esp + 0x88], vtable.ATL::CImage.0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov byte [esp + 0xa4], bl
mov byte [esp + 0xa5], bl
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add dword [0x5c96a8], 1
push 0x5c9690
call esi
mov edi, vtable.CImageEx.0
mov dword [esp + 0x84], edi
mov dword [esp + 0xb4], ebx
push 0x5c9690
mov dword [esp + 0xbc], vtable.ATL::CImage.0
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xd8], bl
mov byte [esp + 0xd9], bl
mov dword [esp + 0xdc], 0xffffffff
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
call ebp
add dword [0x5c96a8], 1
push 0x5c9690
call esi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xe8], ebx
push 0x5c9690
mov dword [esp + 0x54], vtable.ATL::CImage.0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], bl
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call ebp
add dword [0x5c96a8], 1
push 0x5c9690
call esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x80], ebx
push 0x5c9690
mov dword [esp + 0xf0], vtable.ATL::CImage.0
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov byte [esp + 0x10c], bl
mov byte [esp + 0x10d], bl
mov dword [esp + 0x110], 0xffffffff
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
call ebp
add dword [0x5c96a8], 1
push 0x5c9690
call esi
mov dword [esp + 0xec], edi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x128], 8
call fcn.0050b8e1
mov eax, dword [eax + 8]
push 1
push 0x129
lea edx, [esp + 0x8c]
push edx
call fcn.00443e90
call fcn.0050b8e1
mov eax, dword [eax + 8]
push 1
push 0x12b
lea ecx, [esp + 0xc0]
push ecx
call fcn.00443e90
call fcn.0050b8e1
mov eax, dword [eax + 8]
push 1
push 0x127
lea edx, [esp + 0x58]
push edx
call fcn.00443e90
call fcn.0050b8e1
mov eax, dword [eax + 8]
push 1
push 0x124
lea ecx, [esp + 0xf4]
push ecx
call fcn.00443e90
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
jmp 0x42bf60
push 0x5c9690
mov dword [esp + 0x18], vtable.ATL::CImage.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call ebp
mov esi, 1
add dword [0x5c96a8], esi
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], vtable.CImageEx.0
mov dword [esp + 0x44], ebx
mov byte [esp + 0x128], 9
call fcn.0050b8e1
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x130]
mov edx, dword [edx + ecx*8 + 0xa4]
mov eax, dword [eax + 8]
push esi
push edx
lea ecx, [esp + 0x1c]
push ecx
call fcn.00443e90
add dword [esp + 0x3c], esi
cmp dword [esp + 0x38], ebx
jne 0x42c036
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, 0x5c967c
push ebx
push esi
call edi
cmp eax, ebx
jne 0x42c022
add esi, 4
cmp esi, 0x5c968c
jl 0x42c008
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x18]
push edx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
push eax
call fcn.0050c3e6
mov edi, eax
mov eax, dword [esp + 0x4c]
cmp eax, 6
ja case.default.0x42c04f
jmp dword [eax*4 + 0x42c7bc]
cmp edi, ebx
jne 0x42c05e
xor edi, edi
jmp 0x42c061
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
lea esi, [esp + 0xa4]
jmp 0x42c3bb
cmp edi, ebx
jne 0x42c0b1
xor edi, edi
jmp 0x42c0b4
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
lea esi, [esp + 0xd8]
jmp 0x42c3bb
cmp edi, ebx
jne 0x42c104
xor edi, edi
jmp 0x42c107
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
lea esi, [esp + 0x70]
jmp 0x42c3bb
cmp edi, ebx
jne 0x42c14e
xor ebp, ebp
jmp 0x42c151
mov ebp, dword [edi + 4]
fld qword [0x5c1028]
fmul qword [0x587850]
call fcn.00530bd0
fld qword [0x5c1020]
fmul qword [0x5873f0]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
push eax
push ebp
lea esi, [esp + 0xac]
call fcn.004056e0
cmp edi, ebx
jne 0x42c1a5
xor edi, edi
jmp 0x42c1a8
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
push eax
push edi
lea esi, [esp + 0xe0]
call fcn.004056e0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp case.default.0x42c04f
cmp edi, ebx
jne 0x42c205
xor ebp, ebp
jmp 0x42c208
mov ebp, dword [edi + 4]
fld qword [0x5c1028]
fmul qword [0x587850]
call fcn.00530bd0
fld qword [0x5c1020]
fmul qword [0x5873f0]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
push eax
push ebp
lea esi, [esp + 0xac]
call fcn.004056e0
cmp edi, ebx
jne 0x42c25c
xor edi, edi
jmp 0x42c25f
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
push eax
push edi
lea esi, [esp + 0x78]
call fcn.004056e0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp case.default.0x42c04f
cmp edi, ebx
jne 0x42c2b3
xor ebp, ebp
jmp 0x42c2b6
mov ebp, dword [edi + 4]
fld qword [0x5c1028]
fmul qword [0x587850]
call fcn.00530bd0
fld qword [0x5c1020]
fmul qword [0x5873f0]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
push eax
push ebp
lea esi, [esp + 0xe0]
call fcn.004056e0
cmp edi, ebx
jne 0x42c25c
xor edi, edi
jmp 0x42c25f
mov ecx, dword [esp + 0x130]
cmp dword [ecx + 0x5c], ebx
je 0x42c36d
cmp dword [esp + 0x48], ebx
jne 0x42c36d
cmp edi, ebx
jne 0x42c32b
xor edi, edi
jmp 0x42c32e
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fmul qword [0x587850]
call fcn.00530bd0
mov edx, dword [esp + 0x130]
mov ecx, dword [edx + 0x60]
mov edx, dword [esp + 0xfc]
mov esi, dword [esp + 0xf8]
push 0xff
push edx
push esi
push ebx
push ebx
push edx
push esi
push eax
push ecx
lea esi, [esp + 0x110]
jmp 0x42c3bc
cmp edi, ebx
jne 0x42c375
xor edi, edi
jmp 0x42c378
mov edi, dword [edi + 4]
fld qword [0x5c1028]
fld qword [0x587850]
fmul st(1), st(0)
fxch st(1)
call fcn.00530bd0
fmul qword [0x5c1020]
mov esi, eax
call fcn.00530bd0
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xf8]
push 0xff
push ecx
push edx
push ebx
push ebx
push ecx
push edx
push esi
lea esi, [esp + 0x10c]
push eax
push edi
call fcn.004056e0
sub dword [esp + 0x3c], 1
jne 0x42c406
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esi, 0x5c967c
push eax
push esi
call edi
cmp eax, ebx
je 0x42c402
add esi, 4
cmp esi, 0x5c968c
jl 0x42c3e8
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x18]
push edx
call fcn.0050c6ad
cmp eax, ebx
jne 0x42c418
xor ecx, ecx
jmp 0x42c41b
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x130]
mov eax, dword [eax + 0x6c]
push 0xffffff
push ecx
push eax
call fcn.0050b8e1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00410160
mov byte [esp + 0x128], 8
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], vtable.ATL::CImage.0
je 0x42c482
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0xffffffff
mov byte [esp + 0x35], bl
mov byte [esp + 0x34], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call ebp
sub dword [0x5c96a8], 1
jne 0x42c4b9
push 0x5c9690
call ebp
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42c4a8
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x5c9690
mov dword [0x5c968c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5c9690
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, 8
mov dword [esp + 0x48], eax
jl 0x42bf60
mov eax, dword [esp + 0x4c]
add eax, 1
cmp eax, 7
mov dword [esp + 0x4c], eax
jl 0x42bf52
mov esi, dword [esp + 0x130]
mov eax, dword [esi + 0x6c]
push eax
call fcn.0050b8e1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0042e600
mov dword [esi + 0x94], ebx
cmp dword [0x5c9a5c], ebx
jne 0x42c529
push 0x5c9a58
mov dword [0x5c9a58], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x5c9a5c], 6
jne 0x42c541
cmp dword [0x5c9a60], ebx
jne 0x42c541
mov eax, 1
jmp 0x42c543
xor eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0xf0]
cmp eax, ebx
mov dword [esp + 0xec], vtable.ATL::CImage.0
je 0x42c5a6
push eax
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x110], 0xffffffff
mov byte [esp + 0x10d], bl
mov byte [esp + 0x10c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call ebp
sub dword [0x5c96a8], 1
jne 0x42c5e1
push 0x5c9690
call ebp
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42c5cc
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5c9690
mov dword [0x5c968c], ebx
call edi
jmp 0x42c5e7
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5c9690
call edi
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x50], vtable.ATL::CImage.0
je 0x42c62d
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], 0xffffffff
mov byte [esp + 0x71], bl
mov byte [esp + 0x70], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call ebp
sub dword [0x5c96a8], 1
jne 0x42c660
push 0x5c9690
call ebp
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42c653
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x5c9690
mov dword [0x5c968c], ebx
call edi
push 0x5c9690
call edi
mov eax, dword [esp + 0xbc]
cmp eax, ebx
mov dword [esp + 0xb8], vtable.ATL::CImage.0
je 0x42c6c7
push eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xdc], 0xffffffff
mov byte [esp + 0xd9], bl
mov byte [esp + 0xd8], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call ebp
sub dword [0x5c96a8], 1
jne 0x42c6fa
push 0x5c9690
call ebp
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42c6ed
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x5c9690
mov dword [0x5c968c], ebx
call edi
push 0x5c9690
call edi
mov eax, dword [esp + 0x88]
cmp eax, ebx
mov dword [esp + 0x84], vtable.ATL::CImage.0
je 0x42c761
push eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa8], 0xffffffff
mov byte [esp + 0xa5], bl
mov byte [esp + 0xa4], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x5c9690
call ebp
sub dword [0x5c96a8], 1
jne 0x42c794
push 0x5c9690
call ebp
mov eax, dword [0x5c968c]
cmp eax, ebx
je 0x42c787
push eax
call sub.gdiplus.dll_GdiplusShutdown
push 0x5c9690
mov dword [0x5c968c], ebx
call edi
push 0x5c9690
call edi
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4