Function at 0x4af8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [0x4fe160]
mov ecx, dword [0x4fe164]
mov dx, word [0x4fe168]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4fe154]
xor eax, eax
mov dword [esp + 0x46], ecx
mov dword [esp + 0x3a], eax
mov word [esp + 0x38], dx
mov edx, dword [0x4fe158]
xor ecx, ecx
mov dword [esp + 0x3e], eax
mov dword [esp + 0x52], ecx
mov word [esp + 0x42], ax
mov eax, dword [0x4fe15c]
mov dword [esp + 0x4a], edx
mov edx, dword [0x4fe14c]
mov dword [esp + 0x56], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4e], eax
mov eax, dword [0x4fe150]
mov dword [esp + 0x5c], edx
mov edx, dword [0x4eb4c0]
push ebp
mov dword [esp + 0x6c], ecx
push esi
push edi
mov byte [esp + 0x50], 8
mov byte [esp + 0x66], 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x7c], 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 0x88], ecx
lea ebp, [esp + 0x3c]
mov dword [esp + 0x10], 3
mov al, byte [esp + 0x90]
mov cl, byte [ebp + 0x14]
test al, cl
je 0x4afab0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x4afa3c
mov edx, 0x4fe144
test edx, edx
je 0x4afa3c
push edx
call dword [0x4db2d0]
test eax, eax
je 0x4afa3c
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x4afa1e
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x4afa1e
lea ecx, [eax + eax]
lea edi, [edx + edi*2]
mov edx, ecx
mov esi, 0x4fe144
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], 0
jmp 0x4afa3c
push 0x4fe144
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410680
test eax, eax
je 0x4afa3c
push esi
call fcn.00407650
test ebp, ebp
je 0x4afab0
push ebp
call dword [0x4db2d0]
test eax, eax
je 0x4afab0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x4afa96
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x4afa96
lea ecx, [eax + eax]
lea edi, [edx + edi*2]
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], 0
jmp 0x4afab0
push ebp
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x1c]
call fcn.00410680
test eax, eax
je 0x4afab0
push esi
call fcn.00407650
mov eax, dword [esp + 0x10]
add ebp, 0x16
dec eax
mov dword [esp + 0x10], eax
jne 0x4af99b
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x94]
push 0
and eax, 0xffff
push eax
call dword [0x4db668]
and eax, 0xffff
lea ecx, [esp + 0x14]
shl eax, 0x10
or al, 1
push 0x13
push ecx
push eax
call dword [0x4db7c8]
pop edi
pop esi
test eax, eax
pop ebp
jne 0x4afb4f
mov eax, dword [esp]
mov ecx, dword [str.GdiplusStartup]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4afb3b
add eax, 0xfffffff4
push eax
call dword [0x4db2cc]
test eax, eax
jg 0x4afb3b
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.004d2ea5
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
add esp, 0x80
ret
mov edx, dword [esp]
lea ecx, [esp + 8]
push ecx
push edx
push 0x4fe134
push 0x104
push 0x6ddc3c
call dword [0x4db400]
mov eax, dword [esp + 0x14]
mov edx, dword [str.GdiplusStartup]
add esp, 0x14
mov word [0x6dde42], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4afba9
add eax, 0xfffffff4
push eax
call dword [0x4db2cc]
test eax, eax
jg 0x4afba9
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.004d2ea5
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, 0x6ddc3c
mov dword fs:[0], ecx
add esp, 0x80
ret