Function at 0x43fc50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x487510
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x94], ebx
jne 0x43fc8b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
call fcn.0047b196
push 0x2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], ebx
call fcn.004749cb
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004748d7
mov eax, dword [esp + 8]
push 0x4a1190
push eax
mov byte [esp + 0x38], 1
call fcn.004633e1
add esp, 8
cmp eax, ebx
je 0x43fd9b
mov ecx, dword [esp + 8]
push str.jpeg
push ecx
call fcn.004633e1
add esp, 8
cmp eax, ebx
je 0x43fd9b
mov edx, dword [esp + 8]
push 0x4a1084
push edx
call fcn.004633e1
add esp, 8
cmp eax, ebx
jne 0x43fd1f
lea eax, [esp + 0x18]
push eax
push str.image_gif
jmp 0x43fda5
mov ecx, dword [esp + 8]
push 0x4a1070
push ecx
call fcn.004633e1
add esp, 8
cmp eax, ebx
je 0x43fd8f
mov edx, dword [esp + 8]
push 0x4a3cfc
push edx
call fcn.004633e1
add esp, 8
cmp eax, ebx
je 0x43fd8f
mov eax, dword [esp + 8]
push 0x4a107c
push eax
call fcn.004633e1
add esp, 8
cmp eax, ebx
jne 0x43fd6d
lea ecx, [esp + 0x18]
push ecx
push str.image_png
jmp 0x43fda5
mov edx, dword [esp + 8]
push 0x4a108c
push edx
call fcn.004633e1
add esp, 8
cmp eax, ebx
jne 0x43fdb1
lea eax, [esp + 0x18]
push eax
push str.image_bmp
jmp 0x43fda5
lea ecx, [esp + 0x18]
push ecx
push str.image_tiff
jmp 0x43fda5
lea edx, [esp + 0x18]
push edx
push str.image_jpeg
mov ecx, esi
call fcn.0043ff60
cmp eax, 0xffffffff
jne 0x43fde5
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0047b122
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047b122
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push ebp
push edi
call dword [0x48a6a4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe4]
push eax
call dword [0x48a534]
mov ecx, dword [esi + 0xfc]
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0x6c]
push ecx
push edx
push ebx
push ebx
push eax
mov ecx, esi
call fcn.0043faf0
mov ecx, dword [esi + 0x3f0]
mov edx, dword [esi + 0x6c]
push ecx
push ebx
push 1
push edx
mov ecx, esi
call fcn.004439e0
mov ebp, dword [esi + 0x70]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x43fe60
lea eax, [esp + 0x18]
mov dword [edi], 0x48ab24
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov ecx, dword [esp + 0x18]
mov dword [edi + 8], eax
mov dword [edi + 4], ecx
jmp 0x43fe62
xor edi, edi
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi + 0xf8]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
mov edx, dword [edi + 4]
push edx
push 0x21808
push eax
push ecx
push ebx
push ebx
call sub.gdiplus.dll_GdipCloneBitmapAreaI
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x43febd
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x43feaf
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x48ab24
mov dword [eax + 8], ebx
mov dword [eax + 4], ecx
mov ebp, eax
jmp 0x43febf
mov eax, dword [esp + 0x18]
xor ebp, ebp
push eax
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x43febf
xor ebp, ebp
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x43fedd
mov dword [ebp + 8], eax
jmp 0x43fee2
mov ebx, 1
push edi
mov ecx, esi
call fcn.0043fa50
test edi, edi
je 0x43fef6
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
test ebp, ebp
je 0x43ff03
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, esi
call fcn.004433a0
pop edi
pop ebp
test eax, eax
je 0x43ff19
mov ecx, esi
call fcn.00443340
jmp 0x43ff24
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x48a534]
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0047b122
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047b122
mov ecx, dword [esp + 0x28]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4