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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497dfa
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x7b8], edi
mov esi, 0x4a9414
jne 0x45829e
mov eax, esi
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0xc]
setne cl
mov dword [ebx + 0x7c0], eax
mov dword [ebx + 0x7c4], edi
inc ecx
mov dword [ebx + 0x7bc], ecx
mov ecx, dword [ebx + 0xac]
cmp ecx, edi
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0x788], 0
mov dword [ebx + 0x774], eax
je 0x4582be
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.004900d8
mov eax, dword [eax + 0xc]
push 0x14
mov dword [esp + 0x24], eax
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x178], edi
je 0x4582f0
push esi
push dword [ebp + 0xc]
push dword [esp + 0x28]
push eax
call fcn.0046a9e5
jmp 0x4582f2
xor eax, eax
or dword [esp + 0x178], 0xffffffff
lea esi, [ebx + 0xb0]
mov ecx, dword [esi]
cmp ecx, edi
mov dword [ebx + 0xac], eax
je 0x458312
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], edi
mov esi, dword [ebx + 0xac]
call fcn.004303c0
mov esi, dword [ebx + 0xac]
mov dword [esp + 0x18], eax
call fcn.00430390
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push 3
cdq
pop ecx
idiv ecx
cmp eax, edi
mov dword [esp + 0x18], eax
jle 0x4587cf
mov ecx, dword [ebx + 0x774]
and cl, 0xf
cmp cl, 1
jne 0x458367
push 6
push dword [esp + 0x28]
mov ecx, ebx
push eax
push edi
push edi
push edi
call fcn.0049017a
push 0x438910
push fcn.00438920
push 4
push 8
lea eax, [esp + 0xcc]
push eax
call fcn.00490f94
mov dword [esp + 0x178], 2
mov dword [esp + 0x14], edi
jmp 0x458395
xor edi, edi
mov eax, dword [esp + 0x14]
imul eax, eax, 0x188
lea esi, [eax + ebx]
mov ecx, dword [esi + 0xb4]
cmp ecx, edi
mov dword [esp + 0x1c], esi
je 0x4583b6
mov eax, dword [ecx]
push 1
call dword [eax]
lea edi, [esi + 0xbc]
mov dword [esp + 0x10], 9
mov ecx, dword [edi]
test ecx, ecx
je 0x4583d0
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [edi], 0
add edi, 4
dec dword [esp + 0x10]
jne 0x4583c4
cmp dword [esp + 0x14], 3
jne 0x458424
lea esi, [ebx + 0xe0]
lea edi, [ebx + 0x578]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, 0xffff00ff
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 0xb4]
push eax
call fcn.0046b28f
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x54c], eax
mov ebx, ecx
jmp 0x458469
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x30], 0
imul ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
lea eax, [esi + 0xe0]
mov dword [esp + 0x2c], ecx
mov edi, eax
lea esi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0xac]
call fcn.00438660
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0xb4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4584a8
mov ecx, dword [ebx + 0x774]
and ecx, 0xf
cmp cl, 7
je 0x4584a8
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edi, [esp + edi*8 + 0xc8]
mov dword [esp + 0x2c], 0xffff00ff
call fcn.0046b10a
add esp, 0xc
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 4
jl 0x458393
lea ecx, [esp + 0x28]
call dword [0x4a2ef4]
push dword [ebp + 0xc]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x17c], 3
call dword [0x4a2eb8]
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00457d62
mov eax, dword [ebx + 0x774]
and eax, 0xf
cmp al, 7
jne 0x45874c
xor edi, edi
lea esi, [ebx + 0xec]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 4
jmp 0x458529
mov esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [esi - 4]
mov dword [esp + 0x1c], eax
push 3
pop ecx
cdq
idiv ecx
push 3
mov ecx, eax
mov eax, dword [esi]
mov dword [esp + 0x14], eax
pop esi
cdq
idiv esi
push 8
pop esi
lea edx, [esp + 0xe4]
mov dword [edx + 4], edi
mov dword [edx], edi
mov dword [edx - 4], edi
mov dword [edx - 8], edi
add edx, 0x10
dec esi
jns 0x45854e
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea esi, [esp + 0x2c]
lea edi, [esp + 0xdc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ecx + ecx]
mov esi, edx
mov edx, dword [esp + 0x1c]
sub edx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea esi, [esp + 0x3c]
lea edi, [esp + 0xec]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [edx + ecx]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
lea esi, [esp + 0x5c]
lea edi, [esp + 0xfc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + eax]
mov edi, esi
mov esi, dword [esp + 0x10]
sub esi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
lea esi, [esp + 0x9c]
lea edi, [esp + 0x10c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x88], esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
lea esi, [esp + 0x7c]
lea edi, [esp + 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
lea esi, [esp + 0xac]
lea edi, [esp + 0x12c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
add esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea esi, [esp + 0x4c]
lea edi, [esp + 0x13c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
lea esi, [esp + 0x6c]
lea edi, [esp + 0x14c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x90], edx
lea esi, [esp + 0x8c]
lea edi, [esp + 0x15c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xdc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0x30]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], ecx
lea ecx, [eax + 4]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 9
jmp 0x4586ff
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [eax - 0x38]
mov eax, dword [esp + 0x1c]
call fcn.00438660
mov ecx, dword [esp + 0x24]
add dword [esp + 0x24], 4
add dword [esp + 0x10], 0x10
add dword [esp + 0x18], 0x10
dec dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x4586fb
add dword [esp + 0x14], 0x188
dec dword [esp + 0x20]
jne 0x458523
push ebx
call fcn.004587e7
jmp 0x458787
push dword [ebx + 0x6d4]
call sub.gdiplus.dll_GdipSetEmpty
test eax, eax
je 0x458761
mov dword [ebx + 0x6d8], eax
xor esi, esi
push 2
push dword [esp + esi*8 + 0xc0]
push dword [ebx + 0x6d4]
call sub.gdiplus.dll_GdipCombineRegionRegion
test eax, eax
je 0x458781
mov dword [ebx + 0x6d8], eax
inc esi
cmp esi, 4
jl 0x458763
lea edi, [ebx + 0x6e8]
cmp dword [edi], 0
jne 0x4587a0
call fcn.00431490
mov esi, eax
call fcn.00431450
mov dword [edi], eax
mov edi, ebx
call fcn.00457c64
lea ecx, [esp + 0x28]
call dword [0x4a2ee8]
or dword [esp + 0x178], 0xffffffff
push 0x438910
push 4
push 8
lea eax, [esp + 0xc8]
push eax
call fcn.00491057
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc