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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xf8]
call fcn.180039530
xor r8d, r8d
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xe8]
call sub.gdiplus.dll_GdiplusStartup
mov r8, 0xffffffffffffffff
lea rdx, [0x180070a64]
mov rcx, qword [rsp + 0x310]
call fcn.1800278f0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.18001c320
nop
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037747
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rdx, str..png
mov rcx, qword [rsp + 0xf0]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037747
mov dword [rsp + 0x38], 1
jmp 0x18003774f
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x180037776
and dword [rsp + 0x20], 0xfffffffe
lea rcx, [rsp + 0x110]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x1800377c3
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x130]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037824
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
lea rdx, str..jpg
mov rcx, qword [rsp + 0x80]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037824
mov dword [rsp + 0x3c], 1
jmp 0x18003782c
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x25], al
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
je 0x180037853
and dword [rsp + 0x20], 0xfffffffd
lea rcx, [rsp + 0x150]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x1800378a6
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x170]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037907
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
lea rdx, str..ico
mov rcx, qword [rsp + 0x90]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037907
mov dword [rsp + 0x40], 1
jmp 0x18003790f
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x26], al
mov eax, dword [rsp + 0x20]
and eax, 4
test eax, eax
je 0x180037936
and dword [rsp + 0x20], 0xfffffffb
lea rcx, [rsp + 0x190]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x180037989
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x1b0]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x1800379ea
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
lea rdx, str..bmp
mov rcx, qword [rsp + 0xa0]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x1800379ea
mov dword [rsp + 0x44], 1
jmp 0x1800379f2
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x27], al
mov eax, dword [rsp + 0x20]
and eax, 8
test eax, eax
je 0x180037a19
and dword [rsp + 0x20], 0xfffffff7
lea rcx, [rsp + 0x1d0]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x27]
test eax, eax
je 0x180037a6c
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x1f0]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037acd
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
lea rdx, str..jfif
mov rcx, qword [rsp + 0xb0]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037acd
mov dword [rsp + 0x48], 1
jmp 0x180037ad5
mov dword [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x180037afc
and dword [rsp + 0x20], 0xffffffef
lea rcx, [rsp + 0x210]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x180037b4f
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x230]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x230]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037bb0
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
lea rdx, str..jpeg
mov rcx, qword [rsp + 0xc0]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037bb0
mov dword [rsp + 0x4c], 1
jmp 0x180037bb8
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x29], al
mov eax, dword [rsp + 0x20]
and eax, 0x20
test eax, eax
je 0x180037bdf
and dword [rsp + 0x20], 0xffffffdf
lea rcx, [rsp + 0x250]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x180037c32
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x270]
call fcn.180004b40
nop
jmp 0x180037d57
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x180037c93
mov r9, 0xffffffffffffffff
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x290]
mov rcx, qword [rsp + 0x310]
call fcn.180028450
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x20]
or eax, 0x40
mov dword [rsp + 0x20], eax
lea rdx, str..gif
mov rcx, qword [rsp + 0xd0]
call fcn.18000fdb0
movzx eax, al
test eax, eax
je 0x180037c93
mov dword [rsp + 0x50], 1
jmp 0x180037c9b
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x2a], al
mov eax, dword [rsp + 0x20]
and eax, 0x40
test eax, eax
je 0x180037cc2
and dword [rsp + 0x20], 0xffffffbf
lea rcx, [rsp + 0x290]
call fcn.180004b40
nop
movzx eax, byte [rsp + 0x2a]
test eax, eax
je 0x180037d12
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x300]
call fcn.1800384a0
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x2b0]
call fcn.180004b40
nop
jmp 0x180037d57
mov r8, qword [rsp + 0x310]
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x300]
call fcn.1800388c0
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x58]
call fcn.180013500
lea rcx, [rsp + 0x2d0]
call fcn.180004b40
nop
mov rcx, qword [rsp + 0xe8]
call sub.gdiplus.dll_GdiplusShutdown
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x308]
call fcn.1800045d0
mov eax, dword [rsp + 0x20]
bts eax, 7
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x58]
call fcn.180004b40
mov rax, qword [rsp + 0x308]
add rsp, 0x2f8
ret