Function at 0x5324d0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6f55a3
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1f0]
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x54], eax
test ebx, ebx
je 0x533ca9
mov ecx, ebx
call fcn.004bf3c0
test al, al
jne 0x5327b8
cmp byte [esp + 0x1f8], al
je 0x533ce1
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533ce1
push str.BMP:_Couldnt_save_invalid_image.
lea ecx, [esp + 0xb8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 0
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
mov dword [esp + 0xec], eax
mov byte [esp + 0x1e8], 1
call fcn.005eae80
test eax, eax
je 0x5325d7
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5325e9
lea eax, [esp + 0xb4]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x60], eax
mov byte [esp + 0x1e8], 2
call fcn.005c92f0
mov dword [esp + 0x64], eax
mov byte [esp + 0x1e8], 3
call fcn.005c92f0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0
push 0
mov byte [esp + 0x1ec], 4
mov dword [esp + 0x130], 1
mov dword [esp + 0x138], str....._srccommonimagbmp.cpp
mov dword [esp + 0x140], str.wxBMPHandler::SaveDib
mov dword [esp + 0x13c], 0x62
mov dword [esp + 0x144], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x14c], eax
xor eax, eax
mov dword [esp + 0x150], 0
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], 0
mov word [esp + 0x154], ax
mov dword [esp + 0x16c], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 5
call fcn.005e6500
push eax
lea eax, [esp + 0x130]
push eax
call fcn.00439e70
push dword [esp + 0x174]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0x1f4], 4
call esi
add esp, 0xc
cmp dword [esp + 0x168], 8
jb 0x532708
push dword [esp + 0x154]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x168], 7
lea ecx, [esp + 0x134]
mov dword [esp + 0x164], 0
mov word [esp + 0x154], ax
call fcn.00439c40
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 1
call fcn.00420020
push dword [esp + 0xec]
call esi
add esp, 4
cmp dword [esp + 0xe8], 8
jb 0x53276a
push dword [esp + 0xd4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xcc]
xor eax, eax
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], ax
call esi
add esp, 4
cmp dword [esp + 0xc8], 8
jb 0x533ce1
push dword [esp + 0xb4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x533ce1
push str.wxBMP_FORMAT
lea ecx, [esp + 0xb8]
call fcn.00418140
push eax
mov ecx, ebx
mov dword [esp + 0x1ec], 6
call fcn.004bf1b0
push dword [esp + 0xcc]
mov byte [esp + 0x1b], al
mov dword [esp + 0x1ec], 0xffffffff
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0xc8], 8
jb 0x532814
push dword [esp + 0xb4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [esp + 0x17], 0
je 0x5328a2
push str.wxBMP_FORMAT
lea ecx, [esp + 0xb8]
call fcn.00418140
push eax
mov ecx, ebx
mov dword [esp + 0x1ec], 7
call fcn.004be860
mov ebp, eax
mov dword [esp + 0x1e8], 0xffffffff
lea ecx, [esp + 0xb4]
mov dword [esp + 0x24], ebp
call fcn.00418210
cmp ebp, 1
je 0x532d58
cmp ebp, 2
je 0x532d58
cmp ebp, 4
jne 0x53287e
mov edi, ebp
lea ebp, [edi + 0xc]
jmp 0x5328b1
cmp ebp, 8
je 0x532c0d
cmp ebp, 9
je 0x532c0d
cmp ebp, 0xa
je 0x532c0d
cmp ebp, 0xb
je 0x532c16
mov dword [esp + 0x24], 0x18
mov edi, 0x18
xor ebp, ebp
mov ecx, ebx
call fcn.004bf0f0
mov esi, eax
movzx edx, di
imul edx, esi
mov ecx, ebx
add edx, 7
shr edx, 3
mov eax, edx
neg eax
and eax, 3
add eax, edx
mov dword [esp + 0x48], eax
mov eax, 0x4d42
mov word [esp + 0xf4], ax
lea eax, [ebp*4]
mov dword [esp + 0x5c], eax
call fcn.004be5f0
imul eax, dword [esp + 0x48]
lea ecx, [ebp*4]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x104], 0x28
add eax, 0x36
add eax, ecx
mov dword [esp + 0xf8], eax
lea eax, [ecx + 0x36]
mov ecx, ebx
mov dword [esp + 0x100], eax
call fcn.004bf0f0
mov ecx, ebx
mov dword [esp + 0x108], eax
call fcn.004be5f0
cmp byte [esp + 0x1fc], 0
jne 0x53294b
add eax, eax
mov dword [esp + 0x10c], eax
mov ecx, ebx
mov eax, 1
mov word [esp + 0x112], di
mov word [esp + 0x110], ax
mov dword [esp + 0x114], 0
call fcn.004be5f0
imul eax, dword [esp + 0x48]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.004bea70
add esp, 0xc
sub eax, 0
je 0x5329e6
dec eax
je 0x532d72
dec eax
je 0x532d65
cmp dword [0x82e960], 0
je 0x5329e6
push str.unexpected_image_resolution_units
push str.Assert_failure
push str.wxBMPHandler::SaveDib
push 0xc9
push str....._srccommonimagbmp.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5329e6
mov byte [0x87c8e0], 0
int3
mov eax, 0x48
mov ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x749718]
cvttsd2si ecx, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x749718]
cvttsd2si eax, xmm0
mov edi, dword [esp + 0x54]
imul ecx, ecx, 0x64
imul eax, eax, 0x64
cmp byte [esp + 0x1fc], 0
mov dword [esp + 0x124], ebp
mov dword [esp + 0x128], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], eax
je 0x532d7f
push 2
lea eax, [esp + 0xf8]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532aad
push 4
lea eax, [esp + 0xfc]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532aad
push 4
lea eax, [esp + 0x100]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532aad
push 4
lea eax, [esp + 0x104]
mov ecx, edi
push eax
call fcn.00610520
test al, al
jne 0x532d7f
cmp byte [esp + 0x1f8], 0
je 0x533ce1
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533ce1
push str.BMP:_Couldnt_write_the_file__Bitmap__header.
lea ecx, [esp + 0xb8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 0xc
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
mov dword [esp + 0xec], eax
mov byte [esp + 0x1e8], 0xd
call fcn.005eae80
test eax, eax
je 0x532b4d
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0xb8]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x532b5f
lea eax, [esp + 0xb4]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x60], eax
mov byte [esp + 0x1e8], 0xe
call fcn.005c92f0
mov dword [esp + 0x64], eax
mov byte [esp + 0x1e8], 0xf
call fcn.005c92f0
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0
push 0x721844
push str.wxBMPHandler::SaveDib
push 0xf0
push str....._srccommonimagbmp.cpp
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x1fc], 0x10
call fcn.00439de0
mov esi, eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0x11
call fcn.005e6500
push eax
push esi
call fcn.00439e70
add esp, 8
mov byte [esp + 0x1e8], 0x10
lea ecx, [esp + 0x12c]
call fcn.0043f270
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0xd
call fcn.00420020
mov esi, dword [sym.imp.MSVCR120.dll_free]
jmp 0x532745
cmp ebp, 0xb
jne 0x532d49
mov ecx, ebx
call fcn.004bf1e0
test al, al
jne 0x532d49
cmp byte [esp + 0x1f8], al
je 0x533ce1
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533ce1
push str.BMP:_wxImage_doesnt_have_own_wxPalette.
lea ecx, [esp + 0xd8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 8
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xb4]
mov byte [esp + 0x1e8], 9
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00420160
add esp, 8
lea ecx, [esp + 0x60]
push eax
call fcn.0041fd90
push 0x721844
push str.wxBMPHandler::SaveDib
push 0x86
push str....._srccommonimagbmp.cpp
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x1fc], 0xa
call fcn.00439de0
mov esi, eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0xb
call fcn.005e6500
push eax
push esi
call fcn.00439e70
add esp, 8
mov byte [esp + 0x1e8], 0xa
lea ecx, [esp + 0x12c]
call fcn.0043f270
mov byte [esp + 0x1e8], 9
lea ecx, [esp + 0x60]
call fcn.00420020
lea ecx, [esp + 0xb4]
call fcn.00418210
lea ecx, [esp + 0xd4]
call fcn.00418210
jmp 0x533ce1
mov edi, 8
mov ebp, 0x100
jmp 0x5328b1
mov edi, 1
lea ebp, [edi + 1]
jmp 0x5328b1
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
jmp 0x532a15
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
jmp 0x5329ed
cmp byte [esp + 0x200], 0
jne 0x532f90
push 4
lea eax, [esp + 0x108]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x10c]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x110]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 2
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 2
lea eax, [esp + 0x116]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x118]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x11c]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x120]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x124]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x128]
mov ecx, edi
push eax
call fcn.00610520
test al, al
je 0x532e8c
push 4
lea eax, [esp + 0x12c]
mov ecx, edi
push eax
call fcn.00610520
test al, al
jne 0x532f90
cmp byte [esp + 0x1f8], 0
je 0x533ce1
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533ce1
push str.BMP:_Couldnt_write_the_file__BitmapInfo__header.
lea ecx, [esp + 0xd8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 0x12
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xb4]
mov byte [esp + 0x1e8], 0x13
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00420160
add esp, 8
lea ecx, [esp + 0x60]
push eax
call fcn.0041fd90
push 0x721844
push str.wxBMPHandler::SaveDib
push 0x107
push str....._srccommonimagbmp.cpp
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x1fc], 0x14
call fcn.00439de0
mov esi, eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0x15
call fcn.005e6500
push eax
push esi
call fcn.00439e70
add esp, 8
mov byte [esp + 0x1e8], 0x14
lea ecx, [esp + 0x12c]
call fcn.0043f270
mov byte [esp + 0x1e8], 0x13
jmp 0x532d23
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
cmp edi, 1
je 0x53301a
cmp edi, 4
je 0x53301a
cmp edi, 8
je 0x53301a
cmp edi, 0xb
je 0x53306a
cmp edi, 9
je 0x532fcf
cmp edi, 0xa
je 0x532fcf
cmp edi, 2
jne 0x5332b6
lea eax, [ebp*4]
push eax
call fcn.006cff38
add esp, 4
xor edx, edx
mov edi, eax
test ebp, ebp
jle 0x533123
mov ebx, dword [esp + 0x24]
lea ecx, [edi + 1]
test edx, edx
jle 0x532fff
cmp ebx, 2
jne 0x532fff
or al, 0xff
jmp 0x533001
mov al, dl
mov byte [ecx + 1], al
inc edx
mov byte [ecx], al
mov byte [ecx - 1], al
mov byte [ecx + 2], 0
add ecx, 4
cmp edx, ebp
jl 0x532ff2
jmp 0x53311f
cmp edi, 0xb
je 0x53306a
push 8
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
mov dword [esp + 0x38], eax
add esp, 4
test ecx, ecx
je 0x533042
mov dword [ecx + 4], 0
mov dword [ecx], vtable.wxImage.0
jmp 0x533048
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov edx, 0xec
mov eax, ebp
push 4
cmp ebp, edx
push 0
cmovg eax, edx
push eax
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
call fcn.00594f20
add esp, 0x18
jmp 0x5330ab
push 8
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1e8], 0x16
test edi, edi
je 0x53309a
mov ecx, ebx
call fcn.004be980
push eax
mov ecx, edi
call fcn.00479dd0
jmp 0x53309c
xor eax, eax
mov dword [esp + 0x1e8], 0xffffffff
mov dword [esp + 0x18], eax
lea eax, [ebp*4]
push eax
call fcn.006cff38
add esp, 4
mov edi, eax
xor ebx, ebx
mov dword [esp + 0x58], edi
test ebp, ebp
jle 0x53311f
add edi, 2
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2b]
push eax
lea eax, [esp + 0x2e]
push eax
lea eax, [esp + 0x1f]
push eax
push ebx
call fcn.004e9f00
test al, al
jne 0x5330fb
mov byte [esp + 0x2b], al
mov byte [esp + 0x2a], al
mov byte [esp + 0x17], al
jmp 0x5330ff
mov al, byte [esp + 0x2b]
mov byte [edi - 2], al
inc ebx
mov al, byte [esp + 0x2a]
mov byte [edi - 1], al
mov al, byte [esp + 0x17]
mov byte [edi], al
mov byte [edi + 1], 0
add edi, 4
cmp ebx, ebp
jl 0x5330d0
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x30]
test edi, edi
je 0x5332b2
cmp byte [esp + 0x200], 0
jne 0x5332a9
push dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push edi
call fcn.00610520
test al, al
jne 0x5332a9
cmp byte [esp + 0x1f8], al
je 0x533279
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533279
push str.BMP:_Couldnt_write_RGB_color_map.
lea ecx, [esp + 0xd8]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 0x17
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], ax
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xb4]
mov byte [esp + 0x1e8], 0x18
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00420160
add esp, 8
lea ecx, [esp + 0x60]
push eax
call fcn.0041fd90
push 0x721844
push str.wxBMPHandler::SaveDib
push 0x153
push str....._srccommonimagbmp.cpp
push 1
lea ecx, [esp + 0x140]
mov byte [esp + 0x1fc], 0x19
call fcn.00439de0
mov esi, eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0x1a
call fcn.005e6500
push eax
push esi
call fcn.00439e70
add esp, 8
mov byte [esp + 0x1e8], 0x19
lea ecx, [esp + 0x12c]
call fcn.0043f270
lea ecx, [esp + 0x60]
mov byte [esp + 0x1e8], 0x18
call fcn.00420020
lea ecx, [esp + 0xb4]
call fcn.00418210
lea ecx, [esp + 0xd4]
mov dword [esp + 0x1e8], 0xffffffff
call fcn.00418210
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
je 0x533291
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x533ce1
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp 0x533ce1
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x24]
mov ecx, ebx
call fcn.004be4e0
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x5332df
mov ecx, ebp
call fcn.004bf3c0
test al, al
je 0x5332df
mov ecx, ebp
call fcn.004be4e0
mov dword [esp + 0x1c], eax
push dword [esp + 0x48]
call fcn.006cff38
push dword [esp + 0x4c]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x40], ebp
call sub.MSVCR120.dll_memset
add esp, 0x10
mov ecx, ebx
call fcn.004be5f0
dec eax
mov dword [esp + 0x5c], eax
js 0x533725
mov edx, dword [esp + 0x1c]
mov ecx, esi
movsd xmm2, qword [0x733e08]
neg ecx
movsd xmm3, qword [0x749710]
movsd xmm1, qword [0x749708]
mov dword [esp + 0x7c], ecx
mov ecx, eax
imul ecx, esi
lea eax, [esi*4]
sub eax, esi
neg eax
mov dword [esp + 0x2c], eax
lea eax, [edx + 4]
lea eax, [eax + ecx*2]
lea ebx, [ecx + 3]
add eax, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], eax
lea ebx, [ebx]
cmp edi, 0x18
jne 0x533395
test esi, esi
je 0x5336ce
lea ecx, [ebp + 2]
mov edi, esi
lea edx, [eax - 3]
mov al, byte [edx + 1]
lea edx, [edx + 3]
mov byte [ecx - 2], al
lea ecx, [ecx + 3]
mov al, byte [edx - 3]
mov byte [ecx - 4], al
mov al, byte [edx - 4]
mov byte [ecx - 3], al
dec edi
jne 0x533375
jmp 0x5336ca
cmp edi, 8
je 0x53393c
cmp edi, 0xb
je 0x53393c
cmp edi, 9
jne 0x53340f
xor edx, edx
test esi, esi
je 0x5336ce
lea ecx, [eax - 2]
lea esp, [esp]
movzx eax, byte [ecx - 1]
movd xmm1, eax
movzx eax, byte [ecx - 2]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mulsd xmm1, qword [0x749720]
movzx eax, byte [ecx]
add ecx, 3
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm3
addsd xmm1, xmm0
cvttsd2si eax, xmm1
mov byte [edx + ebp], al
inc edx
cmp edx, esi
jb 0x5333c0
jmp 0x5336ce
cmp edi, 0xa
jne 0x533433
xor ecx, ecx
test esi, esi
je 0x5336ce
lea edx, [eax - 4]
mov al, byte [edx]
lea edx, [edx + 3]
mov byte [ecx + ebp], al
inc ecx
cmp ecx, esi
jb 0x533421
jmp 0x5336ce
cmp edi, 4
jne 0x5334a8
xor ebx, ebx
test esi, esi
je 0x53396c
mov edi, eax
lea eax, [ebx + 1]
cmp eax, esi
jbe 0x533455
mov dword [esp + 0x50], 0
jmp 0x533473
movzx eax, byte [edi + 1]
mov ecx, dword [esp + 0x18]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi - 1]
push eax
call fcn.004e9ec0
movzx eax, al
mov dword [esp + 0x50], eax
movzx eax, byte [edi - 2]
mov ecx, dword [esp + 0x18]
push eax
movzx eax, byte [edi - 3]
push eax
movzx eax, byte [edi - 4]
push eax
call fcn.004e9ec0
mov ecx, ebx
shl al, 4
or al, byte [esp + 0x50]
add ebx, 2
shr ecx, 1
add edi, 6
mov byte [ecx + ebp], al
cmp ebx, esi
jb 0x533444
jmp 0x5336c6
cmp edi, 1
jne 0x533753
xor ebp, ebp
test esi, esi
je 0x533975
mov edi, eax
lea ecx, [ecx]
lea ebx, [ebp + 2]
lea eax, [ebx - 1]
cmp eax, esi
jbe 0x5334d4
mov dword [esp + 0x38], 0
jmp 0x5334f9
movzx eax, byte [edi + 1]
mov ecx, dword [esp + 0x18]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi - 1]
push eax
call fcn.004e9ec0
mov edx, dword [esp + 0x1c]
movzx eax, al
shl eax, 6
mov dword [esp + 0x38], eax
cmp ebx, esi
jbe 0x533507
mov dword [esp + 0x3c], 0
jmp 0x533533
movzx eax, byte [edi + 4]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 3]
add ecx, ebp
push eax
lea eax, [edx + ecx*2]
movzx eax, byte [ecx + eax - 3]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ecx, al
shl ecx, 5
mov dword [esp + 0x3c], ecx
lea eax, [ebx + 1]
cmp eax, esi
jbe 0x533544
mov dword [esp + 0x40], 0
jmp 0x533573
movzx eax, byte [edi + 7]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 6]
add ecx, ebp
push eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ecx, al
shl ecx, 4
mov dword [esp + 0x40], ecx
lea eax, [ebx + 2]
cmp eax, esi
jbe 0x533584
mov dword [esp + 0x4c], 0
jmp 0x5335b4
movzx eax, byte [edi + 0xa]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 9]
inc ecx
push eax
mov eax, dword [esp + 0x24]
add ecx, ebp
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ecx, al
shl ecx, 3
mov dword [esp + 0x4c], ecx
lea eax, [ebx + 3]
cmp eax, esi
jbe 0x5335c5
mov dword [esp + 0x50], 0
jmp 0x5335f7
movzx eax, byte [edi + 0xd]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 0xc]
add ecx, 2
push eax
mov eax, dword [esp + 0x24]
add ecx, ebp
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ecx, al
shl ecx, 2
mov dword [esp + 0x50], ecx
lea eax, [ebx + 4]
cmp eax, esi
jbe 0x533608
mov dword [esp + 0x44], 0
jmp 0x533639
movzx eax, byte [edi + 0x10]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 0xf]
add ecx, 3
push eax
mov eax, dword [esp + 0x24]
add ecx, ebp
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ecx, al
add ecx, ecx
mov dword [esp + 0x44], ecx
lea eax, [ebx + 5]
cmp eax, esi
jbe 0x533644
xor ebx, ebx
jmp 0x53366f
movzx eax, byte [edi + 0x13]
mov ecx, dword [esp + 0x20]
push eax
movzx eax, byte [edi + 0x12]
add ecx, 4
push eax
mov eax, dword [esp + 0x24]
add ecx, ebp
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004e9ec0
movzx ebx, al
movzx eax, byte [edi - 2]
mov ecx, dword [esp + 0x18]
push eax
movzx eax, byte [edi - 3]
push eax
movzx eax, byte [edi - 4]
push eax
call fcn.004e9ec0
mov edx, dword [esp + 0x30]
mov ecx, ebp
shl al, 7
add ebp, 8
or al, byte [esp + 0x50]
add edi, 0x18
or al, byte [esp + 0x44]
or al, bl
shr ecx, 3
or al, byte [esp + 0x38]
or al, byte [esp + 0x3c]
or al, byte [esp + 0x40]
or al, byte [esp + 0x4c]
mov byte [ecx + edx], al
mov edx, dword [esp + 0x1c]
cmp ebp, esi
jb 0x5334c0
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
push ebp
call fcn.00610520
test al, al
je 0x53397e
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
dec ecx
add ebx, dword [esp + 0x7c]
add eax, dword [esp + 0x2c]
movsd xmm1, qword [0x749708]
movsd xmm2, qword [0x733e08]
movsd xmm3, qword [0x749710]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x58], eax
test ecx, ecx
jns 0x533360
push ebp
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
je 0x53373d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x53374c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov al, 1
jmp 0x533ce3
cmp edi, 2
jne 0x5336ce
xor edi, edi
test esi, esi
je 0x5336ca
lea ebp, [eax - 4]
lea esp, [esp]
lea edx, [edi + 2]
lea eax, [edx - 1]
cmp eax, esi
jbe 0x533784
mov dword [esp + 0x4c], 0
jmp 0x5337a2
movzx eax, byte [ebp + 3]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx eax, al
shl eax, 6
mov dword [esp + 0x4c], eax
cmp edx, esi
jbe 0x5337b0
mov dword [esp + 0x40], 0
jmp 0x5337d9
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + edi]
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax - 3]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ecx, al
shl ecx, 5
mov dword [esp + 0x40], ecx
lea eax, [edx + 1]
cmp eax, esi
jbe 0x5337ea
mov dword [esp + 0x3c], 0
jmp 0x533812
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + edi]
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ecx, al
shl ecx, 4
mov dword [esp + 0x3c], ecx
lea eax, [edx + 2]
cmp eax, esi
jbe 0x533823
mov dword [esp + 0x38], 0
jmp 0x53384d
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 1]
add ecx, ebx
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ecx, al
shl ecx, 3
mov dword [esp + 0x38], ecx
lea eax, [edx + 3]
cmp eax, esi
jbe 0x53385e
mov dword [esp + 0x44], 0
jmp 0x533888
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 2]
add ecx, ebx
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ecx, al
shl ecx, 2
mov dword [esp + 0x44], ecx
lea eax, [edx + 4]
cmp eax, esi
jbe 0x533893
xor ebx, ebx
jmp 0x5338b8
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + 3]
add ecx, edi
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx ebx, al
add ebx, ebx
lea eax, [edx + 5]
cmp eax, esi
jbe 0x5338c3
xor edx, edx
jmp 0x5338ea
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, 4
add ecx, edi
lea eax, [eax + ecx*2]
movzx eax, byte [ecx + eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
movzx edx, al
movzx eax, byte [ebp]
add ebp, 0x18
movd xmm0, eax
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 3
add edi, 8
mulsd xmm0, xmm1
cvttsd2si ecx, xmm0
shl cl, 7
or cl, byte [esp + 0x4c]
or cl, byte [esp + 0x40]
or cl, byte [esp + 0x3c]
or cl, byte [esp + 0x38]
or cl, byte [esp + 0x44]
or cl, bl
mov ebx, dword [esp + 0x20]
or cl, dl
mov edx, dword [esp + 0x30]
mov byte [eax + edx], cl
cmp edi, esi
jb 0x533770
jmp 0x5336c2
xor ebx, ebx
test esi, esi
je 0x53396c
lea edi, [eax - 3]
movzx eax, byte [edi + 1]
mov ecx, dword [esp + 0x18]
push eax
movzx eax, byte [edi]
push eax
movzx eax, byte [edi - 1]
push eax
call fcn.004e9ec0
mov byte [ebx + ebp], al
lea edi, [edi + 3]
inc ebx
cmp ebx, esi
jb 0x533945
jmp 0x5336c6
mov ebx, dword [esp + 0x20]
jmp 0x5336ce
mov ebp, dword [esp + 0x30]
jmp 0x5336ce
cmp byte [esp + 0x1f8], 0
je 0x533c80
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x533c80
push str.BMP:_Couldnt_write_data.
lea ecx, [esp + 0x1c0]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x1e8], 0x1b
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov dword [esp + 0xac], eax
mov byte [esp + 0x1e8], 0x1c
call fcn.005eae80
test eax, eax
je 0x533a1e
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x533a30
lea eax, [esp + 0x1bc]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x80], eax
mov byte [esp + 0x1e8], 0x1d
call fcn.005c92f0
mov dword [esp + 0x84], eax
mov byte [esp + 0x1e8], 0x1e
call fcn.005c92f0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], 0
push 0
mov byte [esp + 0x1ec], 0x1f
mov dword [esp + 0x178], 1
mov dword [esp + 0x180], str....._srccommonimagbmp.cpp
mov dword [esp + 0x188], str.wxBMPHandler::SaveDib
mov dword [esp + 0x184], 0x1da
mov dword [esp + 0x18c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x194], eax
xor eax, eax
mov dword [esp + 0x198], 0
mov dword [esp + 0x1b0], 7
mov dword [esp + 0x1ac], 0
mov word [esp + 0x19c], ax
mov dword [esp + 0x1b4], eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x1e8], 0x20
call fcn.005e6500
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00439e70
push dword [esp + 0x1bc]
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
add esp, 0xc
cmp dword [esp + 0x1b0], 8
jb 0x533b59
push dword [esp + 0x19c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x198]
xor eax, eax
mov dword [esp + 0x1b0], 7
mov dword [esp + 0x1ac], 0
mov word [esp + 0x19c], ax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x533bd7
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0x1f0], 0x21
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call ebx
push 0x439bf0
push dword [esi]
mov byte [esp + 0x200], 0x1f
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call ebx
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x80]
mov byte [esp + 0x1e8], 0x1c
call fcn.00420020
push dword [esp + 0xac]
call ebx
add esp, 4
cmp dword [esp + 0xa8], 8
jb 0x533c10
push dword [esp + 0x94]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x1d4]
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
mov dword [esp + 0x1ec], 0xffffffff
call ebx
add esp, 4
cmp dword [esp + 0x1d0], 8
jb 0x533c60
push dword [esp + 0x1bc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x1d0], 7
mov dword [esp + 0x1cc], 0
mov word [esp + 0x1bc], ax
push ebp
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
je 0x533c98
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x533ce1
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp 0x533ce1
cmp dword [0x82e960], 0
je 0x533ce1
push str.invalid_pointer_in_wxBMPHandler::SaveFile
push str.image
push str.wxBMPHandler::SaveDib
push 0x5c
push str....._srccommonimagbmp.cpp
call fcn.005c7220
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x533ce1
mov byte [0x87c8e0], 0
int3
xor al, al
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x1d8
ret 0x14