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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x84]
xor eax, eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
cmp esi, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
je 0x4622c0
mov ebx, dword [esp + 0x78]
cmp ebx, eax
je 0x4622c0
mov ebp, dword [esp + 0x7c]
cmp ebp, eax
je 0x4622c0
cmp edi, eax
je 0x4622c0
mov edx, dword [ebx + 4]
lea eax, [esp + 0x5c]
push eax
push 0x26200a
lea ecx, [esp + 0x3c]
push 1
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x461cad
pop edi
pop esi
mov dword [ebx + 8], eax
pop ebp
pop ebx
add esp, 0x64
ret 0x14
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
push 0x26200a
lea edx, [esp + 0x3c]
push 2
push edx
push eax
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x461cdb
mov dword [ebp + 8], eax
jmp 0x4622a7
mov ecx, dword [esp + 0x54]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], ecx
xor dl, dl
xor ecx, ecx
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x461fab
mov eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x24]
imul eax, ecx
add eax, ebx
mov ebx, dword [esp + 0x4c]
imul ebx, ecx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
add ebx, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
mov ebx, dword [edi + 0xc]
test ebx, ebx
jle 0x461f9b
mov ebx, dword [eax]
shr ebx, 0x18
cmp bl, 0x80
jb 0x461e4c
test dl, dl
jne 0x461e45
test byte [esp + 0x88], 4
je 0x461e45
mov ebx, esi
neg ebx
cmp ebx, esi
jg 0x461e45
lea edx, [ebx + ecx]
mov dword [esp + 0x80], edx
cmp dword [esp + 0x88], 0xf
je 0x461d77
test ebx, ebx
jne 0x461e1e
mov eax, ebx
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
sub eax, ecx
mov ecx, 1
je 0x461d8d
mov ecx, eax
mov eax, 0xff
xor edx, edx
div esi
imul eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
test eax, eax
jl 0x461e1e
mov edx, eax
mov eax, dword [esp + 0x84]
cmp edx, dword [eax + 0x10]
jge 0x461e1e
mov ecx, ebx
mov edx, dword [esp + 0x18]
imul ecx, dword [esp + 0x4c]
mov eax, ebx
mov edi, esi
imul eax, dword [esp + 0x64]
lea ecx, [ecx + edx - 4]
mov edx, dword [esp + 0x10]
test esi, esi
lea ebp, [eax + edx - 4]
jle 0x461e1e
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x461e1e
test dword [ebp], 0xff000000
jne 0x461e0a
mov eax, dword [esp + 0x2c]
xor edx, edx
div esi
mov edx, dword [ecx]
imul eax, edi
shl eax, 0x18
cmp eax, edx
jbe 0x461e0a
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
sub ecx, 4
sub ebp, 4
dec edi
dec edx
test edi, edi
mov dword [esp + 0x14], edx
jg 0x461de3
mov ecx, dword [esp + 0x80]
inc ebx
inc ecx
cmp ebx, esi
mov dword [esp + 0x80], ecx
jle 0x461d65
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
mov dl, 1
jmp 0x461f75
test dl, dl
je 0x461f64
test byte [esp + 0x88], 8
je 0x461f64
mov eax, esi
neg eax
cmp eax, esi
mov dword [esp + 0x80], eax
jg 0x461f64
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx]
mov dword [esp + 0x14], edx
jmp 0x461e89
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x88], 0xf
je 0x461ea2
test eax, eax
jne 0x461f44
mov eax, dword [esp + 0x80]
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
sub eax, ecx
mov ecx, 1
je 0x461eb6
mov ecx, eax
mov eax, 0xff
xor edx, edx
div esi
imul eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x461f44
mov edx, eax
mov eax, dword [esp + 0x84]
cmp edx, dword [eax + 0x10]
jge 0x461f44
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x18]
mov edi, ebp
imul ebp, dword [esp + 0x64]
imul edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
add edi, edx
add ebp, ecx
xor ebx, ebx
test esi, esi
jbe 0x461f44
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
lea edx, [ebx + ecx]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jge 0x461f44
test dword [ebp], 0xff000000
jne 0x461f39
mov eax, dword [esp + 0x2c]
xor edx, edx
div esi
mov ecx, esi
sub ecx, ebx
imul ecx, eax
mov eax, dword [edi]
shl ecx, 0x18
cmp ecx, eax
jbe 0x461f39
mov dword [edi], ecx
add edi, 4
add ebp, 4
inc ebx
cmp ebx, esi
jb 0x461f01
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
inc eax
inc edx
cmp eax, esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x14], edx
jle 0x461e82
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
xor dl, dl
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add ebp, 4
add eax, 4
mov dword [esp + 0x18], ebp
mov ebp, dword [edi + 0xc]
inc ebx
mov dword [esp + 0x10], eax
cmp ebx, ebp
mov dword [esp + 0x1c], ebx
jl 0x461d2b
mov eax, dword [edi + 0x10]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x461cf6
mov eax, dword [edi + 0xc]
xor dl, dl
test eax, eax
mov dword [esp + 0x10], 0
jle 0x46228e
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x80], 0
test eax, eax
jle 0x462273
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x10]
mov ebx, eax
imul eax, dword [esp + 0x4c]
imul ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x24]
lea ecx, [edi*4]
add ebx, ecx
add eax, ecx
mov ecx, dword [esp + 0x28]
add ebx, ebp
add eax, ecx
mov ecx, dword [ebx]
mov dword [esp + 0x2c], eax
shr ecx, 0x18
cmp cl, 0x80
jb 0x462147
test dl, dl
jne 0x462140
test byte [esp + 0x88], 1
je 0x462140
mov eax, esi
neg eax
cmp eax, esi
mov dword [esp + 0x20], eax
jg 0x462140
lea edx, [eax*4]
lea ecx, [eax + edi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x46205b
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x88], 0xf
je 0x462075
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x46211b
mov eax, dword [esp + 0x20]
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
sub eax, ecx
mov ecx, 1
je 0x462089
mov ecx, eax
mov eax, 0xff
xor edx, edx
div esi
imul eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x46211b
mov edx, eax
mov eax, dword [esp + 0x84]
cmp edx, dword [eax + 0xc]
jge 0x46211b
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub edi, ebp
sub ecx, edx
add edi, ebx
add ecx, eax
mov ebp, esi
test esi, esi
jle 0x46211b
mov edx, dword [esp + 0x80]
dec edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x46211b
test dword [edi], 0xff000000
jne 0x462101
mov eax, dword [esp + 0x30]
xor edx, edx
div esi
mov edx, dword [ecx]
imul eax, ebp
shl eax, 0x18
cmp eax, edx
jbe 0x462101
mov dword [ecx], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
sub edi, edx
mov edx, dword [esp + 0x14]
sub ecx, eax
dec ebp
dec edx
test ebp, ebp
mov dword [esp + 0x14], edx
jg 0x4620db
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
inc edi
add edx, 4
cmp eax, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
jle 0x462057
mov dl, 1
jmp 0x462252
test dl, dl
je 0x462250
test byte [esp + 0x88], 2
je 0x462250
mov ecx, esi
neg ecx
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jg 0x462250
lea edx, [ecx + edi]
sub eax, ebx
mov dword [esp + 0x20], edx
lea edx, [ebx + ecx*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x88], 0xf
je 0x462193
test ecx, ecx
jne 0x46222f
mov eax, ecx
cdq
mov edi, eax
mov eax, esi
xor edi, edx
sub edi, edx
sub eax, edi
mov edi, 1
je 0x4621a9
mov edi, eax
mov eax, 0xff
xor edx, edx
div esi
imul eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x46222f
mov edx, dword [esp + 0x84]
cmp eax, dword [edx + 0xc]
jge 0x46222f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
xor edi, edi
mov ebx, eax
test esi, esi
lea ebp, [edx + eax]
jbe 0x46222f
mov eax, dword [esp + 0x80]
lea edx, [edi + eax]
mov eax, dword [esp + 0x84]
cmp edx, dword [eax + 0x10]
jge 0x46222f
test dword [ebx], 0xff000000
jne 0x46221a
mov eax, dword [esp + 0x2c]
xor edx, edx
div esi
mov ecx, esi
sub ecx, edi
imul ecx, eax
mov eax, dword [ebp]
shl ecx, 0x18
cmp ecx, eax
jbe 0x46221a
mov dword [ebp], ecx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
add ebp, eax
add ebx, edx
inc edi
cmp edi, esi
jb 0x4621e0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc ecx
inc edi
add edx, 4
cmp ecx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edx
jle 0x462181
xor dl, dl
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
inc eax
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x80], eax
cmp eax, edi
jl 0x461fdd
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
inc eax
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x461fc7
mov esi, dword [esp + 0x7c]
lea edx, [esp + 0x44]
push edx
mov eax, dword [esi + 4]
push eax
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x4622a7
mov dword [esi + 8], eax
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0x5c]
push ecx
mov edx, dword [esi + 4]
push edx
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x4622c0
mov dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x14